Self-taught Projects

Another Discord Bot

InvidiousRustSerenitySongbirdPodman

Yet another music bot. Source code available at https://codeberg.org/AnOrdinaryPeople/dc-music-bot

Features

  • Integrates with a self-hosted Invidious for audio streaming, replacing yt-dlp
  • Reduces compiled size from 116.1 MB to 28.2 MB
  • Handles DAVE and Opus at a lower level via Songbird, eliminating the N-API bridge
  • Home server OS moved to uCore for its immutable and atomic updates, easing long-term maintenance

Why Rewrite?

Rewritten in Serenity after DisTube's yt-dlp fork was publicly archived, with youtubei.js mentioned as the intended replacement but never made compatible with the existing DisTube setup.

Moving off yt-dlp/youtubei.js in favor of a self-hosted Invidious instance also sidesteps the recurring IP-ban and extractor-breakage issues that shaped much of the bot's prior history, while the switch from Bun to Serenity/Songbird. Songbird's use of Symphonia and opus2 for decoding further removes the need to maintain a custom FFmpeg build, cutting another source of operational upkeep.