diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-15 14:18:44 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-15 14:18:44 +0800 |
commit | 08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271 (patch) | |
tree | 80c9f02dbc3e22747a707312538304e78097903b /features/globalSettings/index.js | |
parent | 0f2698a62971cee93b2bb135042703bcc6762bc8 (diff) | |
download | SoopyV2-08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271.tar.gz SoopyV2-08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271.tar.bz2 SoopyV2-08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271.zip |
+ changes
Diffstat (limited to 'features/globalSettings/index.js')
-rw-r--r-- | features/globalSettings/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 |