forgot to remove the "test" text
This commit is contained in:
parent
143f4d7b23
commit
9e2ab256ce
1 changed files with 5 additions and 5 deletions
10
index.js
10
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")
|
||||
}
|
||||
}});
|
||||
|
|
Loading…
Reference in a new issue