This commit is contained in:
Nexus 2024-09-14 23:31:23 +01:00
parent bbb50a6df3
commit c9db4d4222

View file

@ -20,13 +20,12 @@ class InfoModule(niobot.Module):
if not isinstance(resolved, niobot.RoomResolveAliasResponse): if not isinstance(resolved, niobot.RoomResolveAliasResponse):
resolved: niobot.RoomResolveAliasError resolved: niobot.RoomResolveAliasError
return await x.edit( return await x.edit(
"Sorry, I was unable to resolve that room alias.", "Sorry, I was unable to resolve that room alias.\n\n{!r}".format(
override={ str(resolved).replace(
"uk.co.nexy7574.nonsensebot.error": str(resolved).replace(
self.bot.access_token, self.bot.access_token,
"[REDACTED]" "[REDACTED]"
) )
} )
) )
room = resolved.room_id room = resolved.room_id
await x.delete("Room resolved to " + room) await x.delete("Room resolved to " + room)