From fb915558d45d175b82331615390d18f29302f9a9 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Mon, 2 Feb 2026 03:36:10 +0100 Subject: Couple corrections --- main.py | 2 +- velascobot2/utils.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 86fbf4b..c01aa6b 100644 --- a/main.py +++ b/main.py @@ -75,7 +75,7 @@ def main(config: Path | None, token: str | None) -> None: ) bot = Bot( - messenger, bot_token, motd_chats, motd_list, whitelist, testing=True + messenger, bot_token, motd_chats, motd_list, whitelist, testing=False ) run_bot(bot) diff --git a/velascobot2/utils.py b/velascobot2/utils.py index e89e1d4..24c5160 100644 --- a/velascobot2/utils.py +++ b/velascobot2/utils.py @@ -1,5 +1,8 @@ +import logging from enum import StrEnum +logger = logging.getLogger(__name__) + class GraphicType(StrEnum): STICKER = "STICKER" @@ -35,7 +38,7 @@ class ChatData: @staticmethod def from_sql_row(row: tuple[str, str, str, int, int, float, int, int]): - print("From SQL row:", repr(row)) + logger.debug("From SQL row:", repr(row)) return ChatData( row[0], row[1], -- cgit v1.2.3