From 9b5571108a9498ba611efd572a98dc2111a9b1ef Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sat, 14 Sep 2024 23:23:28 +0100 Subject: [PATCH] debug --- app/modules/info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/modules/info.py b/app/modules/info.py index 256e3d3..b5a1d67 100644 --- a/app/modules/info.py +++ b/app/modules/info.py @@ -1,8 +1,11 @@ +import logging import niobot from thefuzz import fuzz class InfoModule(niobot.Module): + log = logging.getLogger(__name__) + @niobot.command(name="room-info", aliases=["ri"]) async def room_info(self, ctx: niobot.Context, room: str = None): """ @@ -36,6 +39,7 @@ class InfoModule(niobot.Module): if ctx.event.sender not in room_obj.users: continue ratio = fuzz.ratio(room, room_obj.display_name) + self.log.debug("%r: %r", room_obj.display_name, ratio) if ratio > 1: matches.append((room_obj, ratio)) matches.sort(