Skip to content

Commit

Permalink
uh
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlii10 committed Sep 21, 2024
1 parent dc8ddfd commit f161d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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

Expand Down Expand Up @@ -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():
Expand Down
1 change: 1 addition & 0 deletions extras/viviatools.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# Variables
loaded_extensions = set(str())
failed_extensions = set(str())
running = False

# Config loading
config = configparser.ConfigParser()
Expand Down

0 comments on commit f161d60

Please sign in to comment.