even mOre debugging

This commit is contained in:
Nexus 2024-09-14 23:26:29 +01:00
parent 602ff5502b
commit 3345ef89ec

View file

@ -37,6 +37,7 @@ class InfoModule(niobot.Module):
matches: list[tuple[niobot.MatrixRoom, float]] = []
for room_id, room_obj in ctx.bot.rooms.items():
if ctx.event.sender not in room_obj.users:
self.log.debug("%r is not in %r", ctx.event.sender, room_id)
continue
ratio = fuzz.ratio(room, room_obj.display_name)
self.log.debug("Ratio for %r: %r", room_obj.display_name, ratio)