diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-02-02 03:36:10 +0100 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-02-02 03:36:10 +0100 |
| commit | fb915558d45d175b82331615390d18f29302f9a9 (patch) | |
| tree | 7094c4e4e87dc2c83e3ba69395d448e27ac12287 | |
| parent | 512915dd4587491dad19c13cde92daada5756d72 (diff) | |
| download | velascobot2-fb915558d45d175b82331615390d18f29302f9a9.tar.xz velascobot2-fb915558d45d175b82331615390d18f29302f9a9.zip | |
Couple corrections
| -rw-r--r-- | main.py | 2 | ||||
| -rw-r--r-- | velascobot2/utils.py | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -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], |
