Fully renamed to unicord

This commit is contained in:
2025-01-12 19:53:53 -06:00
parent 0dbd14da04
commit a57cfc6528
4 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -109,8 +109,8 @@ export class Gateway {
intents: this.client.intents.reduce((acc, intent) => acc | intent, 0),
properties: {
os: process.platform,
browser: 'discord.ts',
device: 'discord.ts'
browser: 'unicord',
device: 'unicord'
}
}
});
+2 -2
View File
@@ -2,11 +2,11 @@ export const isNil = (value: any): value is null | undefined => value === null |
export const exists = <T>(value: T | null | undefined): value is NonNullable<T> => !isNil(value);
export const isObject = (value: any): value is Record<string, any> => typeof value === 'object' && !Array.isArray(value);
export const log = (...args: any[]) => {
const LOG_LEVEL = process.env.DISCORD_TS_LOG_LEVEL?.toLocaleLowerCase();
const LOG_LEVEL = process.env.UNICORD_LOG_LEVEL?.toLocaleLowerCase();
if (LOG_LEVEL === 'debug') {
const timestamp = `\x1b[37m[${new Date().toLocaleString()}]\x1b[0m`;
const prefix = `\x1b[35m[discord.ts]`;
const prefix = `\x1b[35m[unicord]`;
console.log(`${timestamp} ${prefix} \x1b[0m`, ...args);
}
};