From 5372ec1d945be8eddbf6fc86b92787dca0bc61f6 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Wed, 4 Dec 2024 20:32:08 -0800 Subject: [PATCH] Change core startup to use logger instead of print --- token_bot/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/token_bot/core.py b/token_bot/core.py index 62b0c39..e527aab 100644 --- a/token_bot/core.py +++ b/token_bot/core.py @@ -1,3 +1,5 @@ +import logging + import aiohttp from interactions import Extension from interactions import slash_command, listen @@ -16,8 +18,8 @@ class Core(Extension): @listen(Startup) async def on_start(self): - print("TokenBot Core ready") - print(f"This is bot version {VERSION}") + self.bot.logger.log(logging.INFO,"TokenBot Core ready") + self.bot.logger.log(logging.INFO,f"This is bot version {VERSION}") self._tdb = tdb.Database(aiohttp.ClientSession()) @slash_command()