auto response are now canse insensitive
This commit is contained in:
parent
86a7c0f4f0
commit
baf48644db
1 changed files with 3 additions and 2 deletions
5
index.js
5
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]);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue