From b3aec869f2be3a852ad4b2061f68994ea3aeae61 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 6 Dec 2018 22:45:35 +0100 Subject: [PATCH] --- index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 927cb15..a80a60e 100644 --- a/index.js +++ b/index.js @@ -80,6 +80,11 @@ client.registry let message_content = message.content.toLowerCase(); if (message.author.bot) return; { + +// User autoresponse + 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 @@ -101,10 +106,6 @@ client.registry message.react("496028845967802378") } } - -// User autoresponse - if(customresponse[message_content]) - message.channel.send(customresponse[message_content]) }}); // Very basic starboard