Add on_user_mute_started and on_user_mute_stopped events

This commit is contained in:
Mark Backman
2026-01-17 10:10:58 -05:00
parent af89154e96
commit 11924bb980
3 changed files with 27 additions and 0 deletions

View File

@@ -161,6 +161,14 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
logger.info(f"Client disconnected")
await task.cancel()
@user_aggregator.event_handler("on_user_mute_started")
async def on_user_mute_started(aggregator):
logger.info(f"User mute started")
@user_aggregator.event_handler("on_user_mute_stopped")
async def on_user_mute_stopped(aggregator):
logger.info(f"User mute stopped")
runner = PipelineRunner(handle_sigint=runner_args.handle_sigint)
await runner.run(task)