maybe fixed banned authors?

This commit is contained in:
Dalton
2018-12-07 18:53:05 -08:00
parent 7838c1c061
commit 4aaad484ea

8
bot.js
View File

@@ -534,7 +534,7 @@ client.on('message', message => {
// Checks for banned author's using a hard coded list of discord ids. // Checks for banned author's using a hard coded list of discord ids.
// Also rudely cleans garbage entries. // Also rudely cleans garbage entries.
let banned_authors = ['143999140878090240', '517182806359801857']; 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(' '); let messageSplit = message.content.substring(2).split(' ');
if (messageSplit.length >= 2) { if (messageSplit.length >= 2) {
@@ -555,9 +555,9 @@ client.on('message', message => {
message.channel.send('wut do i summon?'); message.channel.send('wut do i summon?');
} }
} }
//} else { } else {
// message.channel.send("You're a bad boi and a banned author, you can't summon til you learn to behave."); message.channel.send("You're a bad boi and a banned author, you can't summon til you learn to behave.");
//} }
} catch (error) { } catch (error) {
//message.channel.send(error.stack); //message.channel.send(error.stack);
//message.channel.send(error.name); //message.channel.send(error.name);