diff --git a/README.md b/README.md
index 19485ca..f01e1d2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
-
discord.ts
+

+
unicord
Build good bots fast
@@ -14,16 +15,16 @@ It's typecript first and has some nifty features like hydration and argument typ
Install with your package manager of choice.
```
-npm install discord.ts
-yarn add discord.ts
-bun add discord.ts
+npm install unicord
+yarn add unicord
+bun add unicord
```
## Quick Start
A small example implementation.
```typescript
-import { Client, type Context } from '`discord.ts';
+import { Client, type Context } from 'unicord';
// Initialize and configure
const client = new Client({
@@ -57,7 +58,7 @@ client.connect();
This library is designed to be type safe and resolve types for you. Because of this you can write code that is both safe and easy to understand. With the `createCommandHandler` utility you can provide types for command arguments. The client will then check and resolve them for you.
```typescript
-import { createCommandHandler, CommandOptionType, type Context } from 'discord.ts';
+import { createCommandHandler, CommandOptionType, type Context } from 'unicord';
// <...>
diff --git a/assets/unicord.png b/assets/unicord.png
new file mode 100644
index 0000000..8ea57c3
Binary files /dev/null and b/assets/unicord.png differ
diff --git a/src/services/connectors/gateway.ts b/src/services/connectors/gateway.ts
index a1e3f90..ae0b2a2 100644
--- a/src/services/connectors/gateway.ts
+++ b/src/services/connectors/gateway.ts
@@ -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'
}
}
});
diff --git a/src/utils/index.ts b/src/utils/index.ts
index b65de19..ae05e6e 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -2,11 +2,11 @@ export const isNil = (value: any): value is null | undefined => value === null |
export const exists = (value: T | null | undefined): value is NonNullable => !isNil(value);
export const isObject = (value: any): value is Record => 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);
}
};
\ No newline at end of file