commit 5372ec1d945be8eddbf6fc86b92787dca0bc61f6
parent e5caf728299ba31c85d963e7293c1e9c147edaf7
Author: Emily Doherty <git@emily.sh>
Date: Wed, 4 Dec 2024 20:32:08 -0800
Change core startup to use logger instead of print
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git 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()