From 1076028a1047858c564f4743b802d8c9ff56ad47 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 20 Oct 2018 00:10:43 +0200 Subject: [PATCH] removed option for autoresponse (broken) --- commands/admin/{autoresponse.js => autoresponse} | 0 index.js | 12 ------------ 2 files changed, 12 deletions(-) rename commands/admin/{autoresponse.js => autoresponse} (100%) diff --git a/commands/admin/autoresponse.js b/commands/admin/autoresponse similarity index 100% rename from commands/admin/autoresponse.js rename to commands/admin/autoresponse diff --git a/index.js b/index.js index 321e991..1517fa0 100644 --- a/index.js +++ b/index.js @@ -5,8 +5,6 @@ const { token, prefix, statsChannel, ownerID, supportServer } = require('./confi const responseObject = require("./json/reply.json"); const reactObject = require("./json/react.json"); const imgResponseObject = require("./json/imgreply.json"); -const autoresponse = require("./json/autoresponse.json"); - // Prefix and ownerID and invite to support server const client = new CommandoClient({ commandPrefix: prefix, @@ -82,28 +80,18 @@ client.registry if (message.author.bot) return; { // Reply with images as attachement if(imgResponseObject[message_content]) { - if(autoresponse[message.channel.id] == 'disable') - 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('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('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('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('The autoresponse have been disabled in this channel') message.react("496028845967802378") } }});