Accent color
All projects

Private Discord music bot, retired

Multifunctional Bot

Topics
Backend
Built with
  • Node.js
  • discord.js
  • DisTube
  • Express
A Discord music channel: /play searching, a Now Playing embed, a song added to the queue and the loop set to the entire queue.

It started as a do-everything bot and settled into what my friends actually used it for: music. Slash commands drive DisTube, which turns YouTube, Spotify and SoundCloud links, or plain search terms, into one queue per server.

It’s deprecated and offline now. The download has the tokens and cookies taken out, so you’d bring your own bot token to run it.

Queue it, loop it, leave when it’s quiet.

Play, pause, resume, skip and stop, a queue capped at 30 songs, and three loop modes: off, this song, or the whole queue. When everyone leaves the voice channel, the bot waits 20 seconds and leaves too.

Discord: the /queue embed with five songs and repeat mode on the entire queue, the help panel listing every command, and the bot leaving an empty voice channel.

Private by design.

Only whitelisted servers can use it. Everyone else still gets /help, with a pointer to where to ask for access. Every command, allowed or not, is logged to an owner-only channel with the server and its ID, and the anti-crash handlers report errors there too instead of taking the bot down.

Commands are just files: each exports its slash definition and handler, and the loader registers whatever is in the folder.

A server that isn't whitelisted gets a polite refusal, while the owner's log channel records each command with its server and catches an error.