refactor: use dotenv/config instead of calling the function manually (#4258)

Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
This commit is contained in:
Seren_Modz 21
2025-07-20 18:53:43 +02:00
committed by GitHub
parent 1cb60c909c
commit f9be7988f2
9 changed files with 14 additions and 33 deletions
+1 -3
View File
@@ -21,11 +21,9 @@ After you installed the `@discordeno/bot` package with npm, yarn, pnpm or bun yo
This is how you can use it to create a bot that logs into discord:
```ts
import dotenv from 'dotenv'
import 'dotenv/config'
import { createBot } from '@discordeno/bot'
dotenv.config()
const bot = createBot({
token: process.env.token,
events: {