removed "say"

This commit is contained in:
Loic Bersier 2018-09-20 18:48:19 +02:00
parent 1451523c27
commit 171446739a

View file

@ -70,11 +70,11 @@ client.registry
// Delete the messages that triggered it and send a messages // Delete the messages that triggered it and send a messages
// if(delresponseObject[message_content]) { // if(delresponseObject[message_content]) {
// message.delete(); // message.delete();
// message.say(delresponseObject[message_content]); // message.channel.send(delresponseObject[message_content]);
// } else // } else
// React to the message and send an auto response with it // React to the message and send an auto response with it
if(responseObject[message_content] && reactObject[message_content]) { if(responseObject[message_content] && reactObject[message_content]) {
message.say(responseObject[message_content]); message.channel.send(responseObject[message_content]);
message.react(reactObject[message_content]); message.react(reactObject[message_content]);
// React only to the messages // React only to the messages
} }
@ -83,7 +83,7 @@ client.registry
} }
// auto respond to messages // auto respond to messages
else if(responseObject[message_content]) { else if(responseObject[message_content]) {
message.say(responseObject[message_content]); message.channel.send(responseObject[message_content]);
} }
}); });