Testing Heroku env file system. part 4

This commit is contained in:
ION606
2022-04-30 17:41:44 -04:00
parent 3857b65d31
commit f91eb6d156
+7 -7
View File
@@ -1,6 +1,6 @@
const { Client, Intents } = require('discord.js'); const { Client, Intents } = require('discord.js');
const Discord = require('discord.js'); const Discord = require('discord.js');
const { token } = require('./config.json'); // const { token } = require('./config.json');
//Heroku part //Heroku part
// const { token } = process.env.token; // const { token } = process.env.token;
@@ -37,11 +37,11 @@ for (const file of commandFiles) {
i ++; i ++;
} }
//ECON SECTION // ECON SECTION
bot.commands.set('ECON', require(`./commands/currency/app.js`)); // bot.commands.set('ECON', require(`./commands/currency/app.js`));
const currency = new Discord.Collection(); // const currency = new Discord.Collection();
const { Users } = require('./commands/currency/dbObjects.js'); // const { Users } = require('./commands/currency/dbObjects.js');
i++; // i++;
bot.commNames.set('length', i); bot.commNames.set('length', i);
@@ -104,4 +104,4 @@ bot.on('messageCreate', (message) => {
//Last Line //Last Line
bot.login(token); bot.login(process.env.token);