python-zulip-api/zulip_botserver
derAnfaenger f3eaa381f6 bots: Audit filesystem access.
This adds a safe function for opening files via
ExternalBotHandler. This restricts open calls to a bot's
local directory.

Finalizes #9
2017-07-26 20:01:17 +02:00
..
tests flask_server: Move the server to its own package. 2017-07-18 01:31:54 -02:30
zulip_botserver bots: Audit filesystem access. 2017-07-26 20:01:17 +02:00
README.md flask_server: Move the server to its own package. 2017-07-18 01:31:54 -02:30
setup.py flask_server: Move the server to its own package. 2017-07-18 01:31:54 -02:30

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.