2019-06-07 14:50:35 +02:00
|
|
|
Run your favorite chatbot in Zulip!
|
2017-10-26 23:51:26 +02:00
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. [Install errbot](https://errbot.readthedocs.io/en/latest/user_guide/setup.html)
|
2020-10-13 23:50:18 +02:00
|
|
|
and follow to instructions to set up a `config.py`.
|
2017-10-26 23:51:26 +02:00
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. Check out our [Errbot integration package for Zulip](https://github.com/zulip/errbot-backend-zulip).
|
2017-10-26 23:51:26 +02:00
|
|
|
Clone this repository somewhere convenient.
|
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. Install the requirements listed in `errbot-backend-zulip/requirements.txt`.
|
2017-10-26 23:51:26 +02:00
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. {!create-a-generic-bot.md!}
|
2017-10-26 23:51:26 +02:00
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. Download your Zulip bot's `zuliprc` config file. You will need its content for the next step.
|
2017-10-26 23:51:26 +02:00
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. Edit your ErrBot's `config.py`. Use the following template for a minimal configuration:
|
2017-10-26 23:51:26 +02:00
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
BACKEND = 'Zulip'
|
|
|
|
|
|
|
|
BOT_EXTRA_BACKEND_DIR = r'<path/to/errbot-backend-zulip>'
|
|
|
|
BOT_DATA_DIR = r'<path/to/your/errbot/data/directory>'
|
|
|
|
BOT_EXTRA_PLUGIN_DIR = r'<path/to/your/errbot/plugin/directory>'
|
|
|
|
|
|
|
|
BOT_LOG_FILE = r'<path/to/your/errbot/logfile.log>'
|
|
|
|
BOT_LOG_LEVEL = logging.INFO
|
|
|
|
|
|
|
|
BOT_IDENTITY = { # Fill this with the corresponding values in your bot's `.zuliprc`
|
|
|
|
'email': '<err-bot@your.zulip.server>',
|
|
|
|
'key': '<abcdefghijklmnopqrstuvwxyz123456>',
|
|
|
|
'site': '<http://your.zulip.server>'
|
|
|
|
}
|
|
|
|
BOT_ADMINS = ('<your@email.address',)
|
|
|
|
CHATROOM_PRESENCE = ()
|
2019-11-18 21:14:43 +01:00
|
|
|
BOT_PREFIX = '<@**err-bot**>' # Providing errbot's full name in Zulip lets it respond to @-mentions.
|
2017-10-26 23:51:26 +02:00
|
|
|
|
|
|
|
Sections you need to edit are marked with `<>`.
|
|
|
|
|
2022-09-09 02:23:45 +02:00
|
|
|
1. [Start ErrBot](https://errbot.readthedocs.io/en/latest/user_guide/setup.html#starting-the-daemon).
|
2017-10-26 23:51:26 +02:00
|
|
|
|
|
|
|
{!congrats.md!}
|
|
|
|
|
2020-08-05 11:50:17 +02:00
|
|
|
![Errbot message](/static/images/integrations/errbot/000.png)
|
2017-10-26 23:51:26 +02:00
|
|
|
|
2019-06-07 14:50:35 +02:00
|
|
|
### Tips
|
2017-10-26 23:51:26 +02:00
|
|
|
|
|
|
|
* Rooms in ErrBot are streams in Zulip.
|