From c9db4d422239a42f8d1dca430c2a9adc428734a8 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sat, 14 Sep 2024 23:31:23 +0100 Subject: [PATCH] ugh --- app/modules/info.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/modules/info.py b/app/modules/info.py index 617f037..ce09f65 100644 --- a/app/modules/info.py +++ b/app/modules/info.py @@ -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)