Simple Discord bot that plays music in your voice channel. Just drop a song name or link in the assigned text channel and it'll start playing.
- Music Playback: Plays YouTube and Spotify links/queries.
- Skip: Just type "skip" (while tagging the bot) to skip the current track.
- Auto Config: The bot remembers which text channel to listen to.
- Welcome Audio: Plays
assets/welcome.mp3when first joining a guild's voice channel.
- Node.js: 22
- Discord: discord.js + distube
- Plugins: YouTube + Spotify
- Multimedia: ffmpeg
- FFmpeg: Install ffmpeg and make sure it's on your PATH.
- Discord Bot: Create a Discord bot and get its token.
-
Configure Channel: Mention the bot and a channel to set where it listens for music commands.
@DJ #music-stuffThe bot will remember this channel even after restarting.
-
Play Music: Join a voice channel and send a link or search term in the configured text channel.
never gonna give you up -
Skip:
@DJ skip
-
Install Dependencies:
npm install
-
Configuration: Copy
config.example.jsontoconfig.jsonand add your setup:{ "DISCORD_TOKEN": "your_bot_token", ":...other_configurations}" }Check
src/messages/default-messages.jsfor all available templates. -
Welcome Audio (Optional): Place an MP3 file at
assets/welcome.mp3. The bot will play this clip the first time it joins a voice channel in each session.
npm start
# or for development
npm run devI got tired of complicated music bots, so this one just... plays the damn song.