From cd4349d63ccacc5333def0fc392be811897e29eb Mon Sep 17 00:00:00 2001 From: Sophie Tauchert Date: Sun, 8 Jan 2023 15:35:28 +0100 Subject: [PATCH] Add reactions to successful commands --- ntfy/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntfy/bot.py b/ntfy/bot.py index b8b948a..22244f3 100644 --- a/ntfy/bot.py +++ b/ntfy/bot.py @@ -88,6 +88,7 @@ class NtfyBot(Plugin): else: await self.db.add_subscription(db_topic.id, evt.room_id) await evt.reply("Subscribed this room to %s/%s", server, topic) + await evt.react("✅") if is_fresh_topic: await self.subscribe_to_topic(db_topic) @@ -108,6 +109,7 @@ class NtfyBot(Plugin): return await self.db.remove_subscription(db_topic.id, evt.room_id) await evt.reply("Unsubscribed this room from %s/%s", server, topic) + await evt.react("✅") async def subscribe_to_topics(self) -> None: topics = await self.db.get_topics()