pi_portal.cli_commands.cli_machine.chatbot.ChatBotCommand

class pi_portal.cli_commands.cli_machine.chatbot.ChatBotCommand[source]

Bases: CommandTaskSchedulerMixin, CommandManagedStateMixin, CommandBase

CLI command to start the Slack bot.

invoke() None[source]

Invoke the command.

load_state(debug: bool, file_path: str = '/etc/pi_portal/config.json') None

Load and configure state.

Parameters:
  • debug (bool) – Enable or disable debug logs.

  • file_path (str) – The path to the file to load.

require_task_scheduler() None

Wait until the task manager service is running.