forgot to remove the "test" text

This commit is contained in:
loicbersier 2018-10-19 23:44:49 +02:00
parent 143f4d7b23
commit 9e2ab256ce

View file

@ -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")
}
}});