python-zulip-api/zulip_botserver
Steve Howell 536ba1843a Add a command line option to run.py for bot config files.
Before this change, we were looking for config files in
default locations in source control, which is not a good
place to look for them.  Now `run.py` and friends have a
command line argument where users can specify the config
files.

Note that the change to server.py is only a partial fix
to make it so that bots that don't use third party config
files won't crash.  That program needs an overhaul, anyway.
2017-11-28 10:52:13 -08:00
..
tests bots: Make StateHandler store state on Zulip server. 2017-11-18 08:58:47 -08:00
zulip_botserver Add a command line option to run.py for bot config files. 2017-11-28 10:52:13 -08:00
README.md flask_server: Move the server to its own package. 2017-07-18 01:31:54 -02:30
setup.py packages: Release 0.3.8 for all PyPI packages. 2017-11-27 23:34:38 -03: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.