auto response are now canse insensitive

This commit is contained in:
unknown 2018-09-18 01:40:27 +02:00
parent 86a7c0f4f0
commit baf48644db

View file

@ -65,8 +65,9 @@ client.registry
// Auto respond to messages // Auto respond to messages
client.on("message", (message) => { client.on("message", (message) => {
if(responseObject[message.content]) { let message_content = message.content.toLowerCase();
message.channel.send(responseObject[message.content]); if(responseObject[message_content]) {
message.channel.send(responseObject[message_content]);
} }
}); });