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 aa955816f94dbf0b0e8a001b90c55f980c2efe69
parent f78616a34de53d378a921924cd30990e6806ccfc
Author: Emily Doherty <git@emily.sh>
Date:   Sat, 30 Nov 2024 04:43:35 -0800

Update the logger to log timestamps

Diffstat:
Mtoken_bot/token_bot.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/token_bot/token_bot.py b/token_bot/token_bot.py @@ -10,7 +10,10 @@ class TokenBot: def __init__(self): load_dotenv() print("#### WoW Token Bot Startup ####") - logging.basicConfig() + logging.basicConfig( + format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', + datefmt='%Y-%m-%d %H:%M:%S', + ) log = logging.getLogger("TokenBotLogger") log.setLevel(logging.INFO) self.bot = Client(