fix a stupid bug that happen for idk wich reasons

This commit is contained in:
Loic Bersier 2018-12-10 21:37:47 +01:00
parent eb4acd503f
commit 585ba99cc5

View file

@ -81,9 +81,12 @@ client.registry
var autoresponse = new SelfReloadJSON('./json/autoresponse.json'); var autoresponse = new SelfReloadJSON('./json/autoresponse.json');
let message_content = message.content.toLowerCase(); let message_content = message.content.toLowerCase();
// fix a stupid bug that happen for idk wich reasons
if (message_content == ('stop')) return; if (message_content == ('stop')) return;
if (message_content == ('is')) return; if (message_content == ('is')) return;
if (message_content == ('on')) return; if (message_content == ('on')) return;
if (message_content == ('once')) return;
if (message.author.bot) return; { if (message.author.bot) return; {
// User autoresponse // User autoresponse