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):
resolved: niobot.RoomResolveAliasError
return await x.edit(
"Sorry, I was unable to resolve that room alias.",
override={
"uk.co.nexy7574.nonsensebot.error": str(resolved).replace(
"Sorry, I was unable to resolve that room alias.\n\n{!r}".format(
str(resolved).replace(
self.bot.access_token,
"[REDACTED]"
)
}
)
)
room = resolved.room_id
await x.delete("Room resolved to " + room)