Slack Events and Real Time Messaging backend for Errbot.
It is recommended to install errbot into a Python virtual environment. The steps are as follows:
Note: The examples assume the virtual environment is created as /opt/errbot
but you can adapt this path to your needs.
- Create and activate the virtual environment.
python3 -m venv /opt/errbot
. /opt/errbot/bin/activate
- Install errbot and slackv3.
pip install errbot[slack]
- Initialise errbot.
errbot --init
- Edit
config.py
to configure the backend with the correct Slack credentials. (See the official documentation of details on how to configure the backend for RTM vs Events)
BACKEND = 'SlackV3'
BOT_IDENTITY = {
'token': 'xoxb-000000000000-000000000000-xxxxxxxxxxxxxxxxxxxxxxxx',
#'signing_secret': "xxxxxx",
#'app_token': "xxxxx"
}
- Start errbot
errbot -c config.py
See the slackv3 documentation for:
- Installation
- Configuration
- User guide
- Developer guide
If you need help for an errbot-backend-slackv3
problem, open an issue at github repository