242bcdbadc
Previously, when a user tried to run the Botserver with a zuliprc but forgot to set the bot name, they were told to edit the botserverrc file. However, the recommended approach is to specify the botname with the -b option. This commit adds an error message specific for this case. It recognizes zuliprc files by their section header `api`. |
||
---|---|---|
.. | ||
tests | ||
zulip_botserver | ||
README.md | ||
setup.py | ||
zulip-botserver-supervisord.conf |
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.