pi_portal.modules.integrations.slack.cli.handler

Slack CLI command handler.

class pi_portal.modules.integrations.slack.cli.handler.SlackCLICommandHandler(bot)[source]

Slack CLI command handler.

Parameters:

bot (SlackBot) – The configured slack bot in use.

command_arm()[source]

Arm the security system.

Return type:

None

command_disarm()[source]

Disarm the security system.

Return type:

None

command_help()[source]

Report the list of valid commands.

Return type:

None

command_id()[source]

Report the logger ID the bot is currently running with.

Return type:

None

command_restart()[source]

Terminate the bot, and rely on supervisor to restart it.

Return type:

None

command_snapshot()[source]

Post a realtime camera snapshot to Slack.

Return type:

None

command_status()[source]

Report the current status of the security system.

Return type:

None

command_temp()[source]

Report the current temperature from polling the sensors.

Return type:

None

command_uptime()[source]

Report the current uptime of this bot.

Return type:

None

handle(command_class)[source]

Handle a command class instance.

Parameters:

command_class (Type[SlackCommandBase]) – The command class to invoke.

Return type:

None