banned authors is bad logic i guess

This commit is contained in:
Dalton
2018-12-07 17:44:53 -08:00
parent dd4d58c64f
commit e19b75f37f

8
bot.js
View File

@@ -500,7 +500,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)) {
let messageSplit = message.content.substring(2).split(' ');
if (messageSplit.length >= 2) {
@@ -521,9 +521,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);