Source code for pi_portal.commands.slack_bot

"""CLI command to start the Slack bot."""

from pi_portal.modules.integrations import slack
from .bases import command
from .mixins import state


[docs]class SlackBotCommand( command.CommandBase, state.CommandManagedStateMixin, ): """CLI command to start the Slack bot."""
[docs] def invoke(self) -> None: """Invoke the command.""" slack_bot = slack.SlackBot() slack_bot.connect()