python-zulip-api/zulip_botserver
Robert Hönig f1bcf3b9a4 botserver: Remove redundant message check.
Previously, the botserver `handle_bot` routine did two checks
on an incoming message:
* First, it checked if the bot email matches
an email in the flaskbotrc.
* Second, it checked if the bot name that corresponds to an email
has a lib module loaded. However, this must be the case, because
all lib modules for all emails are loaded on initialization. Thus,
this commit removes the second check.
2018-05-29 09:52:14 +02:00
..
tests botserver: Remove redundant message check. 2018-05-29 09:52:14 +02:00
zulip_botserver botserver: Remove redundant message check. 2018-05-29 09:52:14 +02:00
README.md flask_server: Move the server to its own package. 2017-07-18 01:31:54 -02:30
setup.py pypi: Release 0.4.7. 2018-05-21 20:02:43 -02:30
zulip-botserver-supervisord.conf zulip_botserver: Add skeleton config file for supervisord. 2017-08-29 09:53:34 -07:00

zulip-bot-server --config-file <path to flaskbotrc> --hostname <address> --port <port>

Example: zulip-bot-server --config-file ~/flaskbotrc

This program loads the bot configurations from the config file (flaskbotrc here) and loads the bot modules. It then starts the server and fetches the requests to the above loaded modules and returns the success/failure result.

Please make sure you have a current flaskbotrc file with the configurations of the required bots. Hostname and Port are optional arguments. Default hostname is 127.0.0.1 and default port is 5002.