slack-bolt-router

Python Versions Slack-Bolt Version Release License

Description

The slack-bolt-router package it is a helper utility that can collect and add routes for the Slack Application.

Current compatible slack-bolt version is 1.10.0.

NOTE: This package may be affected by major updates to the Slack-bolt library, and may not contain additional routes from a future release.

Usage

Install from pip:

python3 -m pip install slack-bolt-router

Import router to file with your handler functions:

from slack_bolt_router import Router

Start to use routers in your bot application:

router = Router()

@router.register(type="view")
def example_submit(ack):
    ack()

router.apply_to(app)

Examples of usage

Contribution

  1. Clone repo
  2. Run poetry install
  3. Make some changes and commit to new branch
  4. Create pull request and add some information about changes in PR
  5. Add project author to PR Reviewers

Author

You can sponsorship this project by links in github repo.

Author personal website: https://hoid.dev

(c) Dmytro Hoi [email protected], 2021 MIT License