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:
parent
798fcc361e
commit
a9ca33c77b
1 changed files with 4 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue