...helps if i do the boolean right

This commit is contained in:
Dalton
2018-12-06 22:54:41 -08:00
parent 3147845071
commit 8490abd97a

4
bot.js
View File

@@ -492,8 +492,8 @@ client.on('message', message => {
// Dalton's image summon command.
// Checks for banned author's using a hard coded list of discord ids.
// Also rudely cleans garbage entries.
let banned_authors = ['steven once i find his id.'];
if (banned_authors.includes(message.author)) {
let banned_authors = ['143999140878090240'];
if (~banned_authors.includes(message.author)) {
let messageSplit = message.content.substring(2).split(' ');
if (messageSplit.length >= 2) {