From 08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 15 Jul 2022 14:18:44 +0800 Subject: + changes --- features/globalSettings/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'features/globalSettings') diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 25b2eaf..8ce9f7e 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -141,8 +141,9 @@ class GlobalSettings extends Feature { this.registerEvent("messageSent", (message, event) => { if (!this.twitchCommands.getValue()) return - if (message.startsWith("-")) { + if (message.startsWith("-") && message[1].toLowerCase().match(/[a-z]/)) { cancel(event) + ChatLib.addToSentMessageHistory(message) fetch("http://soopy.dev/api/soopyv2/botcommand?m=" + encodeURIComponent(message.replace("-", "")) + "&u=" + Player.getName()).text(text => { ChatLib.chat(this.FeatureManager.messagePrefix + "&7" + message) let sendMessage = text -- cgit