diff --git a/token_bot/core.py b/token_bot/core.py index 7832049..649cb5d 100644 --- a/token_bot/core.py +++ b/token_bot/core.py @@ -8,7 +8,7 @@ from interactions.api.events import Startup from token_bot.token_database import database as pdb from token_bot.token_database import database as tdb -VERSION = "0.9.11" +VERSION = "0.9.12" class Core(Extension): diff --git a/token_bot/token_bot.py b/token_bot/token_bot.py index 8aa1037..1680853 100644 --- a/token_bot/token_bot.py +++ b/token_bot/token_bot.py @@ -15,7 +15,13 @@ class TokenBot: ) log = logging.getLogger("TokenBotLogger") log.setLevel(logging.INFO) - self.bot = Client(intents=Intents.DEFAULT, asyncio_debug=True, logger=log) + is_debug = os.getenv("ENV") == "DEBUG" + self.bot = Client( + intents=Intents.DEFAULT, + asyncio_debug=is_debug, + send_command_tracebacks=is_debug, + logger=log, + ) def run(self): self.bot.load_extension("token_bot.core")