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 321e9913..1517fa03 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") } }});