Change core startup to use logger instead of print

This commit is contained in:
Emily Doherty 2024-12-04 20:32:08 -08:00
parent e5caf72829
commit 5372ec1d94

View File

@ -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()