From 72fe5d572b147ddeb4ef7e1b1670b61e1e2d9e77 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 30 Sep 2018 20:57:15 +0200 Subject: [PATCH] removed useless thing --- index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/index.js b/index.js index 89a3e7b6..6156ac68 100644 --- a/index.js +++ b/index.js @@ -69,18 +69,13 @@ client.registry client.on("message", async (message) => { let message_content = message.content.toLowerCase(); - // React to the message and send an auto response with it if (message.author.bot) return; { // Reply with images as attachement if(imgResponseObject[message_content]) { message.channel.send({files: [imgResponseObject[message_content]]}); - } - else if(responseObject[message_content] && reactObject[message_content]) { - message.channel.send(responseObject[message_content]); - message.react(reactObject[message_content]); -// React only to the messages } +// React only to the messages else if(reactObject[message_content]) { message.react(reactObject[message_content]); }