aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 14:18:44 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 14:18:44 +0800
commit08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271 (patch)
tree80c9f02dbc3e22747a707312538304e78097903b /features/globalSettings
parent0f2698a62971cee93b2bb135042703bcc6762bc8 (diff)
downloadSoopyV2-08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271.tar.gz
SoopyV2-08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271.tar.bz2
SoopyV2-08d0f55a47a6b0ac3c4b0d8174bc1bf5b3c94271.zip
+ changes
Diffstat (limited to 'features/globalSettings')
-rw-r--r--features/globalSettings/index.js3
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