dotenv configuration
This commit is contained in:
		@@ -1,3 +1,6 @@
 | 
				
			|||||||
 | 
					import dotenv from "dotenv"
 | 
				
			||||||
 | 
					dotenv.config()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const config = {
 | 
					export const config = {
 | 
				
			||||||
	server: {
 | 
						server: {
 | 
				
			||||||
		bodyParser: {
 | 
							bodyParser: {
 | 
				
			||||||
@@ -18,7 +21,7 @@ export const config = {
 | 
				
			|||||||
	},
 | 
						},
 | 
				
			||||||
	debug: true,
 | 
						debug: true,
 | 
				
			||||||
	port: 1234,
 | 
						port: 1234,
 | 
				
			||||||
	token: "discord-bot-token",
 | 
						token: process.env.BOT_TOKEN ?? "",
 | 
				
			||||||
	guild_id: "id",
 | 
						guild_id: process.env.GUILD_ID ?? "",
 | 
				
			||||||
	client_id: "id"
 | 
						client_id: process.env.CLIENT_ID ?? ""
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user