Twilight Template

January 13, 2026 ยท View on GitHub

An opinionated Twilight bot template.

The template is built in a modular fashion and provides the following features:

  • Gateway session resumption between processes
  • Clean shutdown that awaits event handler completion
  • An administrative /restart <shard> command

Usage

  1. Install cargo-generate: cargo install cargo-generate
  2. Create a bot based upon this template: cargo generate twilight-rs/template