breathe-bot
Guided breathing assistant for discord. Invite the bot to your channel and configure your breathing, then follow the exercises.

Usage
Setup
- Invite the bot to your server
- Join a voice channel and start with a preset:
/breathe box - You can customize the number of rounds:
/breathe box rounds:3to do 3 rounds of box breathing - You can also change the guide's voice:
/breathe box voice:American Male
Have your own guided breathing plan? You can completely customize the exercise:
/breathe custom {rounds} {breathe_in} {hold_in} {breathe_out} {hold_out} {voice}
You can stop a running breathing exercise using /breathe stop. This will stop whichever exercise is running in the guild.
Presets
There are currently two presets for guided breathing:
Box Breathing
This is a breathing technique where each inhale, hold, and exhale (and hold) take the same amount of time.
Cherry-picked study on the potential benefits of this technique
4-7-8 Breathing
This technique involves inhaling, holding the breath, and then exhaling slowly.
Cherry-picked study on potential benefits of this technique.
Development
Prerequisites
- Install rust: https://rust-lang.org/tools/install/
- Install opus: https://opus-codec.org/
Optional - Install docker: https://docs.docker.com/engine/install/
Running the app
Add a .env file with your BOT_SECRET: https://discord.com/developers/docs/quick-start/getting-started#fetching-your-credentials
cargo run # Run the bot
docker compose up -d # Run in a detached docker container
Updating Docs
All documentation is included in the docs directory and built using mkdocs. The documentation site is updated on push to the repository automatically.
uvx --with mkdocs-material --with mkdocs-jupyter mkdocs serve # Preview the site locally
Attribution
This software uses Kokoro TTS to generate audio. Kokoro TTS is licensed under the Apache License, Version 2.0: License.