wow-token-app-bot

An interactions.py Discord bot for getting and alerting on the WoW Token Price
git clone https://git.emily.sh/wowtoken-app/wow-token-app-bot.git
Log | Files | Refs | README | LICENSE

commit 509a7d8a7405cfa046382ae08b99dd3eab10f4f9
parent 28fbdab904e13476b4fc38e445500835da37ee71
Author: Emily Doherty <git@emily.sh>
Date:   Wed, 28 Jan 2026 18:22:06 -0800

Make tracebacks only in debug builds

Diffstat:
Mtoken_bot/core.py | 2+-
Mtoken_bot/token_bot.py | 8+++++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 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 @@ -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")