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):
|
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)
|
||||||
|
|
Loading…
Reference in a new issue