The main errbot chatbot framework supports many different backends. Since this is a modified version of that framework, certain features work a little differently. Especially since it has been bundled as a Docker container for ease of deployments.
To date I have not tested any other backends besides Discord and Slack. The good news is that both of these backends are supported with this version of errbot.
There are slight differences between the two services so certain features will not work. For example, if you ask the bot to join a voice channel via the Discord backend it will work. However, Slack does not have voice channels at this time of writting so that feature will not work.
Enabling the Slack Backend
Backends and their configurion are setup mostly with environment variables. The steps below will walk you through what needs to be done to setup your bot to use Slack instead of Discord.
- Follow the official errbot docs to create a Slack bot and the corresponding token (save this token for the next step)
- Paste the token you get from Slack into your
CHAT_SERVICE_TOKEN='xoxb-token-here' # Slack
- Edit the
config.envfile to set your backend to Slack
- Edit the
config.envfile to set the bot admin(s)
BOT_ADMINSemail@example.com' # Slack example (your true Slack username)
- Disable the following lines as you will not be using the Discord backend and Slack does not support an option for a "bot status"
# BOT_EXTRA_BACKEND_DIR='/app/backend/err-backend-discord' # BOT_STATUS_MESSAGE='errbot | .help'
- Lastly, edit the
src/errbot/requirements.txtfile to enable Slack related pip packages. Look for the line that is a comment related to Slack and simply uncomment all the lines (packages) below it
# errbot[slack] # Uncomment all the lines below this one to enable Slack support ... .. .
Now when you start your bot with
make run it will automatically connect to Slack and use that as its backend