fix(commands): correct monitor command parsing
Adjusted the command parsing logic to require a space after "monitor," ensuring proper extraction of the room ID from the user input. This change enhances command reliability and prevents misinterpretations that could lead to incorrect room monitoring behavior.
This commit is contained in:
parent
d847484b5c
commit
91f16b3a99
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ class ApplicationBot:
|
|||
)
|
||||
elif command == "list":
|
||||
return await self.list_tickets(room)
|
||||
elif command.startswith("monitor"):
|
||||
elif command.startswith("monitor "):
|
||||
room_id = self.resolve_room_id(command.split()[1])
|
||||
await self.add_monitored_room(room_id)
|
||||
return await self.client.room_send(
|
||||
|
|
Loading…
Reference in a new issue