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 protected]
site=http://localhost
token=abcd1234
bot-config-file=helloworld.conf

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":"[email protected]","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.9.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zulip_botserver-0.9.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zulip_botserver-0.9.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for zulip_botserver-0.9.1.tar.gz
Algorithm Hash digest
SHA256 cf125a3d6204ec1589f533c93b5ed21b0dd442b8d6de1191e99a14ad96fdbb55
MD5 5f2e4ebff50f1570ec622265b0e57d13
BLAKE2b-256 25ef20acf9115c8f93d116bd6291cb0667a610c8c92ca2daccfd2f9e775c3a3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zulip_botserver-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9a63e015eb3461cace31f2d76b32ef7e5ad5d503823f46f014c23311eae1d1
MD5 028f393fcffff08e1ddbfb1ec01e252a
BLAKE2b-256 c8aa4cfd11936257c5d6717cebac4e5858f9140597ff9e075c8174d10a256fb0

See more details on using hashes here.

Supported by

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