From 4aaad484ea8a4041a5fefd2066b1fd5a2fbc8fd2 Mon Sep 17 00:00:00 2001 From: Dalton Date: Fri, 7 Dec 2018 18:53:05 -0800 Subject: [PATCH] maybe fixed banned authors? --- bot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.js b/bot.js index 914a43c..3e990c2 100644 --- a/bot.js +++ b/bot.js @@ -534,7 +534,7 @@ client.on('message', message => { // Checks for banned author's using a hard coded list of discord ids. // Also rudely cleans garbage entries. let banned_authors = ['143999140878090240', '517182806359801857']; - //if (~banned_authors.includes(message.author)) { + if (~banned_authors.includes(message.author.id)) { let messageSplit = message.content.substring(2).split(' '); if (messageSplit.length >= 2) { @@ -555,9 +555,9 @@ client.on('message', message => { message.channel.send('wut do i summon?'); } } - //} else { - // message.channel.send("You're a bad boi and a banned author, you can't summon til you learn to behave."); - //} + } else { + message.channel.send("You're a bad boi and a banned author, you can't summon til you learn to behave."); + } } catch (error) { //message.channel.send(error.stack); //message.channel.send(error.name);