mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { config } from 'dotenv'
|
||||
|
||||
config()
|
||||
import 'dotenv/config'
|
||||
|
||||
import { bot } from './bot.js'
|
||||
import commands from './commands/index.js'
|
||||
|
||||
Reference in New Issue
Block a user