feat: standardize bot logging method

Switched to using the bot's centralized logging mechanism for bot info commands, enhancing consistency across the application. This change ensures that all log messages go through the same process, potentially simplifying future debugging and logging enhancements.
This commit is contained in:
Kumi 2024-05-18 21:38:44 +02:00
parent 19aa91cf48
commit d0ab53b3e0
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -3,7 +3,7 @@ from nio.rooms import MatrixRoom
async def command_botinfo(room: MatrixRoom, event: RoomMessageText, bot): async def command_botinfo(room: MatrixRoom, event: RoomMessageText, bot):
logging("Showing bot info...") bot.logger.log("Showing bot info...")
body = f"""GPT Info: body = f"""GPT Info: