From baf48644db4d0d3405138cbd088c6e563eb20616 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 18 Sep 2018 01:40:27 +0200 Subject: [PATCH] auto response are now canse insensitive --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1a36c33c..1180a667 100644 --- a/index.js +++ b/index.js @@ -65,8 +65,9 @@ client.registry // Auto respond to messages client.on("message", (message) => { - if(responseObject[message.content]) { - message.channel.send(responseObject[message.content]); + let message_content = message.content.toLowerCase(); + if(responseObject[message_content]) { + message.channel.send(responseObject[message_content]); } });