Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ database/automod.json
database/isobank/*
*.log
*.pyc
logs/currency.log
logs/error-log.txt
logs/info-log.txt
logs/startup-log.txt
__pycache__
*.bak
venv
Empty file removed logs/currency.log
Empty file.
1 change: 0 additions & 1 deletion logs/error-log.txt

This file was deleted.

1 change: 0 additions & 1 deletion logs/info-log.txt

This file was deleted.

Empty file removed logs/startup-log.txt
Empty file.
18 changes: 14 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,30 @@ def initial_setup():
except IOError as e: logger.error(f"Failed to make database file: {e}", module="main/Setup")
try:
if not os.path.isfile("logs/info-log.txt"):
open('logs/info-log.txt', 'x', encoding="utf-8")
with open('logs/info-log.txt', 'x', encoding="utf-8") as this:
this.write("#All information and warnings will be logged here!\n")
this.close()
logger.info("Created info log", module="main/Setup", nolog=True)
time.sleep(0.5)
if not os.path.isfile("logs/error-log.txt"):
open('logs/error-log.txt', 'x', encoding="utf-8")
with open('logs/error-log.txt', 'x', encoding="utf-8") as this:
this.write("#All exceptions will be logged here!\n")
this.close()
logger.info("Created error log", module="main/Setup", nolog=True)
time.sleep(0.5)
if not os.path.isfile("logs/currency.log"):
open('logs/currency.log', 'x', encoding="utf-8")
with open('logs/currency.log', 'x', encoding="utf-8") as this:
this.close()
logger.info("Created currency log", module="main/Setup", nolog=True)
time.sleep(0.5)
if not os.path.isfile("logs/startup-log.txt"):
with open("logs/startup-log.txt", 'x', encoding="utf-8") as this:
this.close()
time.sleep(0.5)
except IOError as e: logger.error(f"Failed to make log file: {e}", module="main/Setup", nolog=True)

initial_setup() # Check for any missing sub-directories or databases in bot directory

# Framework Module Loader
colors = colors.Colors()
s = logger.StartupLog("logs/startup-log.txt", clear_old_logs=True)
Expand Down Expand Up @@ -379,7 +390,6 @@ async def credits(ctx: ApplicationContext):
await ctx.respond(embed=localembed)

# Initialization
initial_setup() # Check for any missing sub-directories or databases in bot directory
active_cogs = [
"economy",
"maths",
Expand Down