From 8c4129a8905106f033aa4d8360cd447da6852fe0 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Tue, 27 Apr 2021 16:42:46 -0600 Subject: [PATCH] lowercase ar bug --- commands/misc/ar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/ar.js b/commands/misc/ar.js index 778b4b7..46b919c 100644 --- a/commands/misc/ar.js +++ b/commands/misc/ar.js @@ -52,7 +52,7 @@ module.exports = { if (tar.triggers.length === 20) {return message.channel.send("Because of data storage concerns, your ARs are capped at 20 per server. You can join the official support server and talk to the devs if you have a legitimate reason for raising this limit and they can see about raising it for you!");} let h = false; let ar; for (ar of tar.triggers) {if (ar && ar.toLowerCase() === `${trigger}`.toLowerCase()) {h = true;}} if (h) {return message.channel.send("You seem to already have that trigger. Try using `edit` instead!");} - tar.triggers.push(trigger); + tar.triggers.push(trigger.toLowerCase()); client.misc.cache.ar.set(message.guild.id, tar.triggers); tar.ars.push(response); tar.save();