From f91eb6d156317f840f356853f1093da84623f546 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sat, 30 Apr 2022 17:41:44 -0400 Subject: [PATCH] Testing Heroku env file system. part 4 --- main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index 0e4ca7f..8232fe1 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,6 @@ const { Client, Intents } = require('discord.js'); const Discord = require('discord.js'); -const { token } = require('./config.json'); +// const { token } = require('./config.json'); //Heroku part // const { token } = process.env.token; @@ -37,11 +37,11 @@ for (const file of commandFiles) { i ++; } -//ECON SECTION -bot.commands.set('ECON', require(`./commands/currency/app.js`)); -const currency = new Discord.Collection(); -const { Users } = require('./commands/currency/dbObjects.js'); -i++; +// ECON SECTION +// bot.commands.set('ECON', require(`./commands/currency/app.js`)); +// const currency = new Discord.Collection(); +// const { Users } = require('./commands/currency/dbObjects.js'); +// i++; bot.commNames.set('length', i); @@ -104,4 +104,4 @@ bot.on('messageCreate', (message) => { //Last Line -bot.login(token); \ No newline at end of file +bot.login(process.env.token); \ No newline at end of file