Featureddiscord-bot-core is my personal framework crate for building Discord bots in Rust. Built on the twilight stack (gateway, http, cache, standby) with Tokio, it exposes a BotBuilder and a GlobalState with type-keyed dependency injection, plus a unified dispatcher for slash commands, gateway events, message components, and cron-scheduled tasks. It bundles opt-in feature modules whose database migrations are gated by registration rather than config flags, layered TOML + env configuration, Fluent-based internationalization, an in-memory and Redis cache layer, metrics and audit logging, permission and rate-limit helpers, SSH tunneling, and integrations for Google Sheets/Calendar and Microsoft/Minecraft MSA auth. Persistence spans SeaORM (Postgres/MySQL), MongoDB, and Redis. Each bot I build depends on it by path and is wired into its workspace as a git submodule.
Author