now no longer process "up" from "what's up"

This commit is contained in:
liyunze 2024-05-28 18:38:24 +08:00
parent a2119a4ace
commit 5775ade979
2 changed files with 4 additions and 1 deletions

View file

@ -81,6 +81,9 @@ class TwitchPlaysX:
elif char in self.keymap: elif char in self.keymap:
compiled_chars.append({"control": char, "duration": self.key_duration}) compiled_chars.append({"control": char, "duration": self.key_duration})
else:
return []
return compiled_chars return compiled_chars
def process_message(self, author, message, is_mod): def process_message(self, author, message, is_mod):

View file

@ -4,7 +4,7 @@ import platform
import asyncio import asyncio
# SETTINGS # SETTINGS
CHANNEL_NAME = "CHANNEL_NAME" # Twitch channel name CHANNEL_NAME = "RythonDev" # Twitch channel name
KEY_DURATION = 500 # (milliseconds) duration of each key press KEY_DURATION = 500 # (milliseconds) duration of each key press
KEY_DELAY = 0.1 KEY_DELAY = 0.1
X_LIMIT = 10 # (seconds) time limit for each command X_LIMIT = 10 # (seconds) time limit for each command