Source code for pi_portal.modules.integrations.slack.cli.commands.command_status

"""Slack CLI Status command."""

from pi_portal.modules.system.supervisor_config import ProcessList
from typing_extensions import Literal
from .bases.process_status_command import SlackProcessStatusCommandBase


[docs]class StatusCommand(SlackProcessStatusCommandBase): """Slack CLI command to report the status of the camera. :param bot: The configured slack bot in use. """ process_name = ProcessList.CAMERA process_command: Literal["status"] = "status"
[docs] def hook_invoker(self) -> None: """Report if the camera is running or not.""" super().hook_invoker() self.slack_bot.slack_client.send_message(f"Status: {self.result}")