Monorepo for all bots in Chat Apropo.
Bots go inside bots directory. Each bot must have:
- A directory with the name of the bot.
- A
main.pyfile with the entry point of the bot. - A
requirements.txtfile with the dependencies of the bot. - Optional
requirements-dev.txtfile with the development dependencies of the bot. You can build dev mode with./scripts/build_envs.sh dev. - Optional
README.mdfile with the description of the bot. - Optional
.env.examplefile with the environment variables that the bot needs.
The global environment variables are passed as base64 encoded JSON in the format of the config.example.json into the docker file. To build the example run the
pre-commit or:
python scripts/gen_config.py > config.example.jsonAt the docker runtime each entry will be loaded into the bots environment variables.
The docker image runtime expects the contends of this file to be base64 encoded JSON in the CD_ENV_VARS environment variable.