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.
This commit is contained in:
Kumi 2024-08-09 11:44:46 +02:00
parent 798fcc361e
commit a9ca33c77b
Signed by: kumi
GPG key ID: ECBCC9082395383F

4
bot.py
View file

@ -95,6 +95,10 @@ class RoombaBot:
"Unknown command. Use '!roomba block <room_id>', '!roomba unblock <room_id>', or '!roomba shutdown <room_id> [--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.