Skip to main content

Zulip's Flask server for running bots

Project description

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.

The --hostname and --port arguments are optional, and default to 127.0.0.1 and 5002 respectively.

The format for a configuration file is:

[helloworld]
key=value
email=helloworld-bot@zulip.com
site=http://localhost
token=abcd1234

Is passed --use-env-vars instead of --config-file, the configuration can instead be provided via the ZULIP_BOTSERVER_CONFIG environment variable. This should be a JSON-formatted dictionary of bot names to dictionary of their configuration; for example:

ZULIP_BOTSERVER_CONFIG='{"helloworld":{"email":"helloworld-bot@zulip.com","key":"value","site":"http://localhost","token":"abcd1234"}}' \
  zulip-botserver --use-env-vars

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zulip_botserver-0.8.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

zulip_botserver-0.8.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file zulip_botserver-0.8.1.tar.gz.

File metadata

  • Download URL: zulip_botserver-0.8.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for zulip_botserver-0.8.1.tar.gz
Algorithm Hash digest
SHA256 4a7a5bb92fe42f0ebd6fc5f8642f18fba889d1c96b96c3df1d00ee07ac08c772
MD5 ce83894cd70b2e73c5dd38276a2faa7e
BLAKE2b-256 de29bb57b56a0db6d3fae228bd2322eb63085a2d37cfa2dba08d767792d44852

See more details on using hashes here.

File details

Details for the file zulip_botserver-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: zulip_botserver-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for zulip_botserver-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 528f16ef064317ac69e4c3998ca4f70d1c53cb3f07a8690325996ff41bcc1429
MD5 6479e07240acda2d6b1560dedc8e1c65
BLAKE2b-256 5eab1f965903f99a2cac6d60b6521e61cd31822f471f0ae6a959dff3ca6f4ae8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page