Say when recording was stopped

This commit is contained in:
MTRNord 2023-01-29 18:26:09 +01:00
parent 13335ca18e
commit d23b54a772
No known key found for this signature in database
1 changed files with 9 additions and 0 deletions

View File

@ -108,6 +108,15 @@ class RecordingBot:
)
elif event.body.startswith("!stop"):
await self.recorder.leave_call(room)
await self.client.room_send(
room.room_id,
"m.room.message",
{
"msgtype": "m.notice",
"body": "Recording stopped",
},
ignore_unverified_devices=True,
)
elif event.body.startswith("!start"):
await self.recorder.join_call(room)