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.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zulip_botserver-0.8.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for zulip_botserver-0.8.2.tar.gz
Algorithm Hash digest
SHA256 ef8490749b1627799b534491ea9caef286ec9e7763c338fe809475bb2dffd50b
MD5 5dd1ef80e042b4dba9e8824a263524d0
BLAKE2b-256 b5d91754cf621103a1f08d43b8973d79a8bb220fad56d6ee34b8c63325c1d11d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zulip_botserver-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for zulip_botserver-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2a86bd138aab1d9f051751ffa9f5d38c44672a54324a4c522cd6584e8b0a54d
MD5 522441c7ce098d7124c88e0c64993945
BLAKE2b-256 6d7396cd30a1bb0b15c286141a8bbd2af88a24301e9e4177d44c0ee45e87f266

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