ugh
This commit is contained in:
parent
bbb50a6df3
commit
c9db4d4222
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue