python-zulip-api/zulip_botserver
novokrest 50173c105b botserver: Read bot's config from config section with bot's name.
This commit changes the default behavior for a hypothetical bot
named 'bot_one' to the following with the config file:

1. Find and load section named 'bot_one', else...
2. Find and load the first section, else...
3. Exit with error message.

Also, we now gracefully show missing options in a config section
instead of printing the whole stacktrace of the exception.
2018-07-12 20:49:10 +05:30
..
tests botserver: Make bot-name-not-found error more user-friendly. 2018-06-04 10:14:17 -07:00
zulip_botserver botserver: Read bot's config from config section with bot's name. 2018-07-12 20:49:10 +05:30
README.md botserver: Rename zulip-bot-server to zulip-botserver. 2018-06-04 10:14:17 -07:00
setup.py PyPI: Release 0.5.1. 2018-07-01 12:05:59 -02:30
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.