Slack#

Implements a bot backend for Slack.

Identities#

The Slack backend implements the following identities, which can be used to limit commands to certain users, teams, channels, etc…

Identities#

Type

Example

Description

user

U012BTV7D5F

A unique user ID (not a username)

channel

N/A

A unique channel ID (not a name)

team

N/A

A unique team ID (not a name)

API#

class clicky.backends.slack.SlackBackend(app: Clicky, name: str, backend: BackendConfig)#
async run()#

Take over the process and start the bot. This will be called only after forking the process, so you can do whatever you want here.

class clicky.backends.slack.SlackMessageContext(say)#
async post_run(*, duration=None)#

Called after a command has finished executing.

async pre_run()#

Called before a command is executed.

async reply(reply_type: ReplyType, message: str)#

Called whenever the command wants to return data to the user.