forked from Supositware/Haha-Yes
little fix for an unknown bug
This commit is contained in:
parent
134f799556
commit
eb4acd503f
1 changed files with 5 additions and 4 deletions
9
index.js
9
index.js
|
@ -81,14 +81,15 @@ client.registry
|
|||
var autoresponse = new SelfReloadJSON('./json/autoresponse.json');
|
||||
|
||||
let message_content = message.content.toLowerCase();
|
||||
if (message_content.includes('stop')) return;
|
||||
if (message_content == ('stop')) return;
|
||||
if (message_content == ('is')) return;
|
||||
if (message_content == ('on')) return;
|
||||
if (message.author.bot) return; {
|
||||
|
||||
// User autoresponse
|
||||
if(customresponse[message_content])
|
||||
if(customresponse[message_content]) {
|
||||
message.channel.send(customresponse[message_content])
|
||||
|
||||
|
||||
}
|
||||
// If autoresponse is enable send the response
|
||||
if(autoresponse[message.channel.id] == 'enable') {
|
||||
// Reply with images as attachement
|
||||
|
|
Loading…
Reference in a new issue