From a9ca33c77b24812ace9a9e8637dbda76812c649b Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 9 Aug 2024 11:44:46 +0200 Subject: [PATCH] feat(bot): add read markers upon command execution Mark events as read in the moderation room after handling commands. Enhances user feedback by visually confirming command reception. --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 5a78d4d..202affb 100644 --- a/bot.py +++ b/bot.py @@ -95,6 +95,10 @@ class RoombaBot: "Unknown command. Use '!roomba block ', '!roomba unblock ', or '!roomba shutdown [--purge]'.", ) + await self.client.room_read_markers( + self.moderation_room_id, event.event_id, event.event_id + ) + async def block_room(self, room_id, block): """Block or unblock a room.