From cf250970956695b299f3301220f3635e61955181 Mon Sep 17 00:00:00 2001 From: "chris062689@gmail.com" Date: Wed, 6 Mar 2019 23:25:59 -0500 Subject: [PATCH] Corrected rules command to parse message lowercased. --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 3e51522..49ae834 100644 --- a/src/server.js +++ b/src/server.js @@ -96,7 +96,7 @@ client.on('message', message => { // Check if the channel is #rules, if so we want to follow a different logic flow. if (message.channel.id === process.env.DISCORD_RULES_CHANNEL) { - if (message.content.includes(process.env.DISCORD_RULES_TRIGGER)) { + if (message.content.toLowerCase().includes(process.env.DISCORD_RULES_TRIGGER)) { // We want to remove the 'Unauthorized' role from them once they agree to the rules. logger.verbose(`${message.author.username} ${message.author} has accepted the rules, removing role ${process.env.DISCORD_RULES_ROLE}.`); state.stats.ruleAccepts += 1;