pi_portal.modules.integrations.slack.bot

Pi Portal Slack Bolt bot.

class pi_portal.modules.integrations.slack.bot.SlackBot[source]

Slack bot.

configure_logger()

Configure a standardized logger for this class.

Return type:

None

connect()[source]

Start the Slack bot.

Return type:

None

handle_command(command)[source]

Handle a CLI command by name.

Parameters:

command (str) – The Slack CLI command to handle.

Return type:

None

handle_event(event)[source]

Validate a bot message bound for this Slack Bot’s channel.

Parameters:

event (TypeSlackBoltEvent) – An unvalidated Slack Bot message event.

Return type:

None

class pi_portal.modules.integrations.slack.bot.TypeSlackBoltEvent[source]

Typed representation of a Slack Bolt message event.