From 92204910f8e727af7acd86e4f92196ea53263e6a Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Sat, 20 Jul 2019 22:33:41 +0200
Subject: [PATCH] toLowerCase()

---
 commands/admin/tag.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/admin/tag.js b/commands/admin/tag.js
index d8c39196..f0bc94a0 100644
--- a/commands/admin/tag.js
+++ b/commands/admin/tag.js
@@ -46,7 +46,7 @@ class TagCommand extends Command {
 			message.channel.awaitMessages(filter, {time: 5000, max: 1, errors: ['time'] })
 				.then(async messages => {
 					let messageContent = messages.map(messages => messages.content);
-					if (messageContent == 'y' || messageContent == 'yes') {
+					if (messageContent.tolowerCase() == 'y' || messageContent.tolowerCase() == 'yes') {
 						const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id};
 						await Tag.update(body, {where: {trigger: args.trigger, serverID: message.guild.id}});
 						return message.channel.send(`tag have been set to ${args.trigger} : ${args.response}`);