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
@@ -57,11 +57,9 @@ There you go. You now have an event handler working perfectly.
Once, again we are going to create a quick http listener that will listen for events coming from the shards and process them accordingly. Create a file like `services/bot/index.ts` and paste the code below:
```ts
import dotenv from 'dotenv'
import 'dotenv/config'
import express from 'express'
dotenv.config()
const AUTHORIZATION = process.env.AUTHORIZATION as string
const app = express()