From f4a1ba50e4b3d0d4510f44765e9a25b633e8aeb6 Mon Sep 17 00:00:00 2001 From: Zedb0T <89345505+Zedb0T@users.noreply.github.com> Date: Mon, 25 Jul 2022 15:06:00 -0400 Subject: [PATCH 1/2] Update twitchcommands.py --- resources/twitchcommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/twitchcommands.py b/resources/twitchcommands.py index 2c68e04..33554c7 100644 --- a/resources/twitchcommands.py +++ b/resources/twitchcommands.py @@ -103,7 +103,7 @@ def gamecontrol(): while True: - if "!trip" == args[0].lower(): + if "!trip" == message.lower(): print(message) sendForm("(send-event *target* 'loading)") message = "" @@ -173,7 +173,7 @@ def gamecontrol(): sendForm("(set! (-> *FACT-bank* eco-full-timeout) (seconds 20))") message = "" - if "!gotolevel" == args[0].lower(): + if "!gotolevel" == message.lower(): print("(start 'play (get-continue-by-name *game-info* \""+args[1]+"\"))") print("(start 'play (get-continue-by-name *game-info* \""+args[1]+"\"))") print("(start 'play (get-continue-by-name *game-info* \""+args[1]+"\"))") From da01cf5cd30b0ce9695edbfa60377126282c8118 Mon Sep 17 00:00:00 2001 From: Zedb0T <89345505+Zedb0T@users.noreply.github.com> Date: Mon, 25 Jul 2022 15:20:46 -0400 Subject: [PATCH 2/2] Update twitchcommands.py --- resources/twitchcommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/twitchcommands.py b/resources/twitchcommands.py index 33554c7..ca6de26 100644 --- a/resources/twitchcommands.py +++ b/resources/twitchcommands.py @@ -102,7 +102,7 @@ def gamecontrol(): global message while True: - + args = message.split(" ") if "!trip" == message.lower(): print(message) sendForm("(send-event *target* 'loading)")