Add cooldown configuration for flag commands (#14)

This commit is contained in:
2025-12-10 13:32:29 +01:00
committed by GitHub
parent 4c05e3d402
commit f261081842
3 changed files with 20 additions and 1 deletions

View File

@@ -65,6 +65,10 @@ Set the following environment variables:
- `FLAGWAVER_HTTP_PORT`: Port for the flagwaver HTTP server (default: `8910`)
- `UVICORN_HOST`: Host address for the Uvicorn server (default: `0.0.0.0`)
- `AUTO_SYNC_COMMANDS`: Whether to automatically sync slash commands with Discord (default: `true`)
- `FLAGWAVER_PATH`: Path to the flagwaver distribution directory (default: `src/flagwaver/dist`)
- `LOG_LEVEL`: Logging level for the application (default: `INFO`)
- `COOLDOWN_RATE`: Number of command uses allowed per cooldown period (default: `1`)
- `COOLDOWN_PER`: Cooldown period in seconds (default: `900`, i.e., 15 minutes)
## Installation