dotenv configuration
This commit is contained in:
		@@ -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 ?? ""
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user