summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-04 19:54:49 -0700
committer8cy <[email protected]>2020-04-04 19:54:49 -0700
commitf5924ab7451be6b9c027d8ed9b94742cde220bc9 (patch)
treebdfb3d3c3300745ae50307c63ec0fad1af0bbf91
parentfix emoji id, v1.2.5 (diff)
downloads5nical-f5924ab7451be6b9c027d8ed9b94742cde220bc9.tar.xz
s5nical-f5924ab7451be6b9c027d8ed9b94742cde220bc9.zip
v1.2.6
- mute commands output in console - change if in mods-chat to bot-commands
-rw-r--r--app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.js b/app.js
index 40b2977..49480c7 100644
--- a/app.js
+++ b/app.js
@@ -12,8 +12,8 @@ bot.on('ready', () => {
});
// Outputs available commands in output console
- commands = ['bot', 'help'];
- console.log(commands);
+ //commands = ['bot', 'help'];
+ //console.log(commands);
});
// Outputs errors in console window
@@ -22,7 +22,7 @@ bot.on('error', console.error);
// Start Bot Commands
bot.on('message', async msg => {
//console.log(msg.content.toLowerCase());
- if (msg.channel.name === 'bots' || msg.channel.name === 'mods-chat' || msg.member.hasPermission('KICK_MEMBERS')) {
+ if (msg.channel.name === 'bots' || msg.channel.name === 'bot-commands' || msg.member.hasPermission('KICK_MEMBERS')) {
var msgContent = msg.content.toLowerCase();
if (prefixCheck()) {
console.log(msg.member.user.tag, 'says', msgContent, 'in #' + msg.channel.name);