Added commands for listing all subscriptions and currently live streams. (Closes #1)

This commit is contained in:
2026-01-06 15:27:29 -05:00
parent 7c10d15dd6
commit c6430a4110
4 changed files with 184 additions and 0 deletions
+20
View File
@@ -103,6 +103,26 @@ class OwncastSentry(Plugin):
"""
await self.command_handler.unsubscribe(evt, url)
@command.new(help="Lists all stream subscriptions in this room.")
async def subscriptions(self, evt: MessageEvent) -> None:
"""
Command handler that delegates to CommandHandler.
:param evt: MessageEvent of the message calling the command.
:return: Nothing.
"""
await self.command_handler.subscriptions(evt)
@command.new(help="Lists currently live streams in this room.")
async def live(self, evt: MessageEvent) -> None:
"""
Command handler that delegates to CommandHandler.
:param evt: MessageEvent of the message calling the command.
:return: Nothing.
"""
await self.command_handler.live(evt)
async def stop(self) -> None:
"""
Method called by Maubot upon shutdown of the instance.