From 903f9cd59e7a9f90e8d3d01854eb0c809d9e4947 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 19 Jan 2020 14:12:56 +0100 Subject: [PATCH] make the update lowercase --- 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 6dfc9030..c843b099 100644 --- a/commands/admin/tag.js +++ b/commands/admin/tag.js @@ -66,7 +66,7 @@ class TagCommand extends Command { const filter = m => m.content && m.author.id == message.author.id; message.channel.awaitMessages(filter, {time: 5000, max: 1, errors: ['time'] }) .then(async messages => { - let messageContent = messages.map(messages => messages.content); + let messageContent = messages.map(messages => messages.content.toLowerCase()); if (messageContent == 'y' || messageContent == '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}});