Change core startup to use logger instead of print
This commit is contained in:
parent
e5caf72829
commit
5372ec1d94
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user