Improve unknown room error

This commit is contained in:
Nexus 2024-09-14 23:19:16 +01:00
parent 1a8e39048c
commit 1ff469d413

View file

@ -50,7 +50,7 @@ class InfoModule(niobot.Module):
if room not in ctx.bot.rooms: if room not in ctx.bot.rooms:
return await ctx.respond( return await ctx.respond(
"Unknown room %r." % room "Unknown room %r. Am I in it?" % room
) )
room_obj: niobot.MatrixRoom = ctx.bot.rooms[room] room_obj: niobot.MatrixRoom = ctx.bot.rooms[room]