banned authors is bad logic i guess
This commit is contained in:
8
bot.js
8
bot.js
@@ -500,7 +500,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)) {
|
||||||
|
|
||||||
let messageSplit = message.content.substring(2).split(' ');
|
let messageSplit = message.content.substring(2).split(' ');
|
||||||
if (messageSplit.length >= 2) {
|
if (messageSplit.length >= 2) {
|
||||||
@@ -521,9 +521,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);
|
||||||
|
Reference in New Issue
Block a user