From 2192637d91beb4234ec46c4bb445986cee09115c Mon Sep 17 00:00:00 2001 From: Kami Date: Sat, 1 Feb 2025 13:09:02 +0100 Subject: [PATCH] Fixed unavailable bot_start_time variable for !ping command --- bots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots.py b/bots.py index b05470e..e7d21e1 100644 --- a/bots.py +++ b/bots.py @@ -109,8 +109,9 @@ def log_error(error_msg): # Main Event Loop ############################### +global bot_start_time +bot_start_time = time.time() async def main(): - bot_start_time = time.time() global discord_bot, twitch_bot discord_bot = DiscordBot(config_data, logger)