python-zulip-api/zulip_botserver
Rohitt Vashishtha 74d902d14f botserver: Allow importing custom bot modules.
We can now specify path to a bot's python file as the ini section
header in the botserver's config file. For example:

[~/Documents/helloworld.py]
email=a@b.com
key=XXXX
site=https://b.com
token=XXXX
2019-09-03 13:27:21 -07:00
..
tests botserver: Allow importing custom bot modules. 2019-09-03 13:27:21 -07:00
zulip_botserver botserver: Allow importing custom bot modules. 2019-09-03 13:27:21 -07:00
README.md botserver: Rename zulip-bot-server to zulip-botserver. 2018-06-04 10:14:17 -07:00
setup.py zulip_bots, zulip_botserver: Add PEP 561 type annotation markers. 2019-08-09 17:29:04 -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.