mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user