dotenv configuration

This commit is contained in:
mightypanders 2021-11-11 01:00:01 +01:00
parent 9e923f1657
commit ce18abeb36

View File

@ -1,3 +1,6 @@
import dotenv from "dotenv"
dotenv.config()
export const config = {
server: {
bodyParser: {
@ -18,7 +21,7 @@ export const config = {
},
debug: true,
port: 1234,
token: "discord-bot-token",
guild_id: "id",
client_id: "id"
token: process.env.BOT_TOKEN ?? "",
guild_id: process.env.GUILD_ID ?? "",
client_id: process.env.CLIENT_ID ?? ""
}