From 9e2ab256cedee7a87a2b413ab0fa8cf8837e3224 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 19 Oct 2018 23:44:49 +0200 Subject: [PATCH] forgot to remove the "test" text --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index a59345b7..321e9913 100644 --- a/index.js +++ b/index.js @@ -83,27 +83,27 @@ client.registry // Reply with images as attachement if(imgResponseObject[message_content]) { if(autoresponse[message.channel.id] == 'disable') - return message.channel.send('test') + return message.channel.send('The autoresponse have been disabled in this channel') message.channel.send({files: [imgResponseObject[message_content]]}); } // React only to the messages else if(reactObject[message_content]) { if(autoresponse[message.channel.id] == 'disable') - return message.channel.send('test') + return message.channel.send('The autoresponse have been disabled in this channel') message.react(reactObject[message_content]); } // auto respond to messages else if(responseObject[message_content]) { if(autoresponse[message.channel.id] == 'disable') - return message.channel.send('test') + return message.channel.send('The autoresponse have been disabled in this channel') message.channel.send(responseObject[message_content]); } else if (message_content.includes("like if")) { if(autoresponse[message.channel.id] == 'disable') - return message.channel.send('test') + return message.channel.send('The autoresponse have been disabled in this channel') message.react("\u{1F44D}") } else if (message_content.includes("jeff")) { if(autoresponse[message.channel.id] == 'disable') - return message.channel.send('test') + return message.channel.send('The autoresponse have been disabled in this channel') message.react("496028845967802378") } }});