Message Context#

When a message is received from a Backend such as Slack, a MessageContext is created which can be used to track state. As an example, the SlackMessageContext class will post a message to slack when a command starts, and update it with total duration after the command finished.

class clicky.context.MessageContext#
async post_run(*, duration: float)#

Called after a command has finished executing.

async pre_run()#

Called before a command is executed.

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

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