An all-in-one Discord bot written in Rust: music, ListenBrainz stats, downloads, games, AI chat, moderation and a web dashboard. https://astar76sites.parore-gila.ts.net
  • Rust 90.8%
  • JavaScript 4.4%
  • CSS 3%
  • HTML 1.7%
  • Shell 0.1%
Find a file

Dezio

Dezio

An all-in-one Discord bot written in Rust — music with a live player, ListenBrainz stats, video downloads, games, AI chat, moderation, logging and a web dashboard.

➕ Add to your server · Website · Support server


What it does

🎵 Music Songs and playlists from a search or link, a live player with buttons, /music, vote-skip, read-ahead buffering for slow connections, auto-leave
📊 Music stats (ListenBrainz) Now playing, top artists/albums/tracks, collages, "Who knows?" charts, lyrics, Pixel Jumble
⬇️ Downloads TikTok, Instagram, YouTube, X, Reddit and more — converted while downloading, sized for Discord
🛡️ Moderation & logs Kick, ban, timeout, purge (15 filters), locks, slowmode, full event logging
👋 Server setup Welcome cards, autoroles, sticky roles, reaction roles, role menus, media-only and voting channels
🎮 Games & casino Chess, Connect 4, Wordle, Akinator, Cookie Clicker, blackjack, slots, roulette …
🤖 Fun AI chat, GIF actions, confessions, phone calls between servers, styled quotes
🕹️ Game Boy A Game Boy you can play inside Discord (Activity)
⚙️ Dashboard Sign in with Discord to change settings, quote style and role menus

Every command works as a slash command and most with the D! prefix. Run /help for the full list.

Built with

twilight (gateway, HTTP, cache) · songbird (voice) · tokio · axum (dashboard) · ratatui (console) · cosmic-text (text and emoji drawing) · yt-dlp and ffmpeg (media)

Run it yourself

You need Rust, ffmpeg, yt-dlp and curl on the host (plus libopus).

cp .env.example .env        # DISCORD_BOT_TOKEN=… (and optional keys, see below)
cargo build --release
DEZIO_LIVE=1 ./target/release/dezio            # console UI in a terminal
DEZIO_LIVE=1 ./target/release/dezio --headless # plain logs (for a service)

Without DEZIO_LIVE=1 it only lists its commands and exits, so tests never touch Discord. cargo test runs the unit tests (some live tests are #[ignore]d and need the internet).

Optional settings (environment or .env): OPENROUTER_KEY (AI chat), STEAMGRIDDB_API_KEY (Game Boy covers), DASHBOARD_URL, DASHBOARD_CLIENT_SECRET, DASHBOARD_HOST / DASHBOARD_PORT, IG_COOKIES.

Data lives in data/*.json. Game Boy ROMs are not included — put your own in assets/roms/<group>/.

Layout

src/commands/   one folder or file per feature (music, lastfm, media, games, fun, logs …)
src/web/        dashboard + Game Boy Activity server
src/tui.rs      terminal console
assets/         fonts, images, word lists, presets
web/            website, dashboard and Activity pages
docs/           Top.gg listing text

Project history and decisions are in ROADMAP.md.

Repository files (latest commit first)
Filename Latest commit message Latest commit date
astar76 ef26f7ff12 Covers and artist photos with fallbacks, tag IDs first
Covers come from the release in the player's own tags (Cover Art
Archive), then ListenBrainz's match, the release group, Deezer and
iTunes. Deezer and iTunes results count only when the artist and title
match. Artist photos come from Deezer, then MusicBrainz/Wikimedia.
Missing album names are looked up on Deezer. Play counts and Who Knows
match by MusicBrainz ID before names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:44:39 -06:00
assets Speech bubble reference: Assyst style 2026-11-12 09:18:36 -06:00
deploy Upload shaping stays enabled across reboots 2026-11-07 00:23:02 -06:00
docs Covers and artist photos with fallbacks, tag IDs first 2026-12-01 15:44:39 -06:00
Plans S000: workflow scaffold 2026-11-12 09:12:57 -06:00
src Covers and artist photos with fallbacks, tag IDs first 2026-12-01 15:44:39 -06:00
web Covers and artist photos with fallbacks, tag IDs first 2026-12-01 15:44:39 -06:00
.env.example Dezio: an all-in-one Discord bot in Rust 2026-10-24 11:47:43 -05:00
.gitignore Dezio: an all-in-one Discord bot in Rust 2026-10-24 11:47:43 -05:00
Cargo.lock Lighter music card for the slow upload, security patches 2026-11-07 00:11:26 -06:00
Cargo.toml Animated player card with album colours, voice failure handling, hero carousel 2026-11-06 20:27:20 -06:00
CLAUDE.md S000: workflow scaffold 2026-11-12 09:12:57 -06:00
ORCHESTRATOR.md S000: workflow scaffold 2026-11-12 09:12:57 -06:00
PLAN.md S000: workflow scaffold 2026-11-12 09:12:57 -06:00
README.md fm commands read ListenBrainz instead of the Last.fm API 2026-12-01 14:52:40 -06:00
ROADMAP.md Lighter music card for the slow upload, security patches 2026-11-07 00:11:26 -06:00