From f161d602ca8ce7ab841613a29bc0e2fa9f287227 Mon Sep 17 00:00:00 2001 From: WiseDragoon5374 Date: Sat, 21 Sep 2024 12:12:06 -0400 Subject: [PATCH] uh --- bot.py | 5 ++--- extras/viviatools.py | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index de0343f..27c2a00 100644 --- a/bot.py +++ b/bot.py @@ -58,7 +58,6 @@ # Variables current_status = "Vivia is powering up..." -running = False # Terminal title. VSCode will scream at you that one of these is unreachable, ignore it if sys.platform == 'win32': @@ -83,7 +82,7 @@ async def on_ready(): """ # skip if Vivia is already running - if running: + if viviatools.running: viviatools.log("Vivia is already running. Skipping initialization process.") return @@ -167,7 +166,7 @@ async def on_ready(): viviatools.log(f"Loaded {len(loaded)} extensions - failed loading {len(failed)}.") viviatools.log("Vivia is all ready!") - running = True + viviatools.running = True @tasks.loop(hours=1) async def statusChanges(): diff --git a/extras/viviatools.py b/extras/viviatools.py index 5c6a993..3ccc1a5 100644 --- a/extras/viviatools.py +++ b/extras/viviatools.py @@ -31,6 +31,7 @@ # Variables loaded_extensions = set(str()) failed_extensions = set(str()) +running = False # Config loading config = configparser.ConfigParser()