Testing Heroku env file system. part 2

This commit is contained in:
ION606
2022-04-30 17:13:41 -04:00
parent 70e94560c0
commit a4657611bc
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -5,9 +5,6 @@ module.exports = {
const { Op } = require('sequelize'); const { Op } = require('sequelize');
const { Collection, Client, Formatters, Intents } = require('discord.js'); const { Collection, Client, Formatters, Intents } = require('discord.js');
const { CurrencyShop } = require('./dbObjects.js'); const { CurrencyShop } = require('./dbObjects.js');
// const { token } = require('./config.json');
//Heroku
const { token } = require('process.env');
const command = com2; const command = com2;
const client = clientTemp; //new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); const client = clientTemp; //new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
+2 -2
View File
@@ -1,8 +1,8 @@
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('./commands/currency/config.json'); //const { token } = require('config.json');
//Heroku part //Heroku part
const { token } = require('process.env'); const { token } = require('dotenv').config();
const bot = new Client({ const bot = new Client({