forked from Supositware/Haha-Yes
removed option for autoresponse (broken)
This commit is contained in:
parent
9c53826591
commit
1076028a10
2 changed files with 0 additions and 12 deletions
12
index.js
12
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")
|
||||
}
|
||||
}});
|
||||
|
|
Loading…
Reference in a new issue