From 00438a6d6e4b1b2349383f5e283b23026198adae Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Sun, 12 Nov 2023 13:34:59 +0800 Subject: [PATCH] Fix ksubot global value (#1130) --- scripts/ksubot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ksubot.py b/scripts/ksubot.py index 5cd098e3d3bc..e443a1906081 100644 --- a/scripts/ksubot.py +++ b/scripts/ksubot.py @@ -41,6 +41,7 @@ def get_caption(): def check_environ(): + global CHAT_ID, MESSAGE_THREAD_ID if BOT_TOKEN is None: print("[-] Invalid BOT_TOKEN") exit(1)