콘텐츠로 이동

interactive

This module is used to start the Slack app in interactive mode.

Examples:

>>> from slack_helpers import app
>>> from slack_helpers.interactive import handler
>>> @app.message("hello")
... def hello_message(body: dict[str, Any], say):
...     logger.info("Received a hello command")
...     logger.info(f"body: {pformat(body)}")
...     say(text=f"Hi <@{body['event']['user']}>!")
>>> handler.start()