aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/globalSettings/index.js')
-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