python-zulip-api/zulip_botserver
Robert Hönig 3ddc8f9b5d botserver: Make bot-name-not-found error more user-friendly.
Previously, when a bot name wasn't found, the Botserver threw
an ImportError with an error message. This results in an
intimidating traceback which is in most cases not helpful to
the user. This commit replaces the ImportError with sys.exit.
2018-06-04 10:14:17 -07:00
..
tests botserver: Make bot-name-not-found error more user-friendly. 2018-06-04 10:14:17 -07:00
zulip_botserver botserver: Make bot-name-not-found error more user-friendly. 2018-06-04 10:14:17 -07:00
README.md botserver: Rename zulip-bot-server to zulip-botserver. 2018-06-04 10:14:17 -07:00
setup.py botserver: Rename zulip-bot-server to zulip-botserver. 2018-06-04 10:14:17 -07:00
zulip-botserver-supervisord.conf botserver: Rename zulip-bot-server to zulip-botserver. 2018-06-04 10:14:17 -07:00

zulip-botserver --config-file <path to botserverrc> --hostname <address> --port <port>

Example: zulip-botserver --config-file ~/botserverrc

This program loads the bot configurations from the config file (botserverrc 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 botserverrc 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.