From 74f3b5c9f767dc2eb10b79d2cb0b8b35427f0dcb Mon Sep 17 00:00:00 2001 From: = Date: Sun, 8 Aug 2021 18:58:34 -0400 Subject: [PATCH] big doinks in amish --- index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index d487d5d..c728190 100644 --- a/index.js +++ b/index.js @@ -39,14 +39,16 @@ client.login(process.env.TOKEN) // This runs on each message the bot sees client.on('message', message => { + // Out here smoking big doinks in Amish + if (message.content.toLowerCase().includes('big doinks')) { + message.channel.send('gang.'); + } + // Get the filename and extension as an array const file = functions.getFileInfo(message.content); if (!file) return; - // Out here smoking big doinks in Amish - if (message.content.toLocaleLowerCase.includes('big doinks')) { - message.channel.send('gang.'); - } + // If the message is from a bot, or doesn't have a valid file extension, stop here. if (functions.extIsValid(file.extension) == false || message.author.bot) return;