From 3857b65d31f7d1266667361037ae057c47cda865 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sat, 30 Apr 2022 17:39:34 -0400 Subject: [PATCH] Testing Heroku env file system. part 4 --- main.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index e280f9f..0e4ca7f 100644 --- a/main.js +++ b/main.js @@ -1,8 +1,8 @@ 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; +// const { token } = process.env.token; const bot = new Client({ intents: [ @@ -95,11 +95,13 @@ bot.on('messageCreate', (message) => { case 'kareoke': bot.commands.get('kareoke').execute(message, args); break; - default: bot.commands.get('ECON').execute(bot, prefix, message, args, command, Users, currency); + default: message.channel.send("'" + message.content + "' is not a command!"); + //Removed because Heroku doesn't work with sqlite + //default: bot.commands.get('ECON').execute(bot, prefix, message, args, command, Users, currency); } }) //Last Line -bot.login(process.env.token); \ No newline at end of file +bot.login(token); \ No newline at end of file