mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user