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 17:53:43 +01:00
committed by GitHub
parent 1cb60c909c
commit f9be7988f2
9 changed files with 14 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
import { Intents } from '@discordeno/bot'
import 'dotenv/config'
import { Intents } from '@discordeno/bot'
// #region Mapping of environment variables to javascript variables with some minimal parsing
// General Configurations

View File

@@ -1,9 +1,8 @@
import 'dotenv/config'
import { createBot } from '@discordeno/bot'
import events from './events/index.js'
import { config } from 'dotenv'
config()
const token = process.env.TOKEN
// Ensure the existence of the TOKEN env

View File

@@ -1,6 +1,4 @@
import { config } from 'dotenv'
config()
import 'dotenv/config'
import { bot } from './bot.js'
import commands from './commands/index.js'