From 283e71f2c0c9ff03cb284434441b207e0a06b09a Mon Sep 17 00:00:00 2001 From: Sabi <120003982+cyanogus@users.noreply.github.com> Date: Wed, 26 Apr 2023 11:42:59 +0530 Subject: [PATCH] Remove Halloween 2022 theme from client initialization --- main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index aab78e50..8b6dec1b 100644 --- a/main.py +++ b/main.py @@ -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