From 329faa1fd6670525281069235fc103fc36463bb5 Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Thu, 2 Dec 2021 17:00:24 +0100 Subject: [PATCH] Bypass zero width space --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a5f3c96..e48cc49 100644 --- a/index.js +++ b/index.js @@ -61,7 +61,7 @@ client.on("interactionCreate", (int) => { if(int.commandName == "ping"){ int.reply(`Pong! (${client.ws.ping} ms)`); } else if(int.commandName == "rps"){ - var shape = int.options.getString("firstmove").toLowerCase(); + var shape = int.options.getString("firstmove").toLowerCase().replace("​", ""); if(!shapes.includes(shape)) return int.reply("That isn't a valid shape."); var msgRow = new dc.MessageActionRow(); var rockButton = new dc.MessageButton();