bongodevs/Rustalink — reverse-engineered prompt
Reverse engineered prompt
Build me a fast standalone Discord music audio node in Rust, similar to Lavalink, that a Discord bot can connect to on port 2333 and use for playing music reliably.
It should focus on low latency audio sending, session recovery, lots of simultaneous streams, and a simple config file that can be mounted in Docker. Please include Docker support and a docker compose example so I can run it without installing Rust locally.
It needs to support direct playback from common sources like YouTube, SoundCloud, Deezer, Bandcamp, Twitch, Reddit, HTTP links, and local files. For services like Spotify, Apple Music, Tidal, Amazon Music, Last.fm, Pandora, and similar metadata based sources, resolve the track info and mirror it through a playable provider when needed. Also include basic text to speech support.
Please add useful logs and Prometheus style metrics, and keep it compatible with the Lavalink v4 API so existing music bots can use it. Look up current Discord audio and Lavalink docs online if you need to.
Want more depth? Deep Reverse