This backend implementation was originally created by Attakei Lab. You can find the repo here.
We've introduced some important changes for retrieving users and channels, like pagination and support for different types (e.g. private_channels, public_channel).
This is ErrBot backend-plugin for Slack App (not legacy and classic bot) by Slack Bolt.
This need Slack application in App Directory.
chat:write
im:history
users:read
channels:read
message.im
message.channels
Run
pip install --extra-index-url https://pypi.attakei.net/simple/ errbot-slack-bolt-backend
- Import function to get plugin directory from
errbot_slack_bolt_backend
.example:from errbot_slack_bolt_backend import get_plugin_dir
- Set directory path to
BOT_EXTRA_BACKEND_DIR
of yourconfig.py
.example:BOT_EXTRA_BACKEND_DIR = str(get_plugin_dir())
- Clone repository into your workspace from GitHub.example:
git clone https://github.com/attakei-lab/errbot-slack-bolt-backend.git
- Set directory path to
BOT_EXTRA_BACKEND_DIR
of yourconfig.py
.example:BOT_EXTRA_BACKEND_DIR = 'errbot-slack-bolt-backend/errbot_slack_bolt_backend'
Set configuration to your config.py
.
BACKEND = "SlackBolt"
BOT_IDENTITY = {
# Required
"app_token": "YOUR-APP-LEVEL-TOKEN",
"bot_token": "YOUR-BOT-USER-TOKEN",
}
This does not yet implement all features of built-in Slack/SlackRTM backend.
- Response of direct message
- Response of post in joined channels
Apache 2.0