Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
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
18 changes: 9 additions & 9 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ class plugins:
# isobank = framework.isobank.manager.IsoBankManager(f"{wdir}/database/isobank/accounts.json", f"{wdir}/database/isobank/auth.json")
isobankauth = framework.isobank.authorize.IsobankAuth(f"{wdir}/database/isobank/auth.json", f"{wdir}/database/isobank/accounts.json")

#Theme Loader
with open("themes/halloween.theme.json", 'r', encoding="utf-8") as f:
theme = json.load(f)
try:
color_loaded = theme["theme"]["embed_color"]
color = int(color_loaded, 16)
except KeyError:
print(f"{colors.red}The theme file being loaded might be broken. Rolling back to default configuration...{colors.end}")
color = discord.Color.random()
# Theme Loader
#with open("themes/halloween.theme.json", 'r', encoding="utf-8") as f:
# theme = json.load(f)
# try:
# color_loaded = theme["theme"]["embed_color"]
# color = int(color_loaded, 16)
# except KeyError:
# print(f"{colors.red}The theme file being loaded might be broken. Rolling back to default configuration...{colors.end}")
# color = discord.Color.random()

#Events
@client.event
Expand Down