Skip to content

Make your own Discord music bot

Your bot joins your voice channel and plays Spotify, Apple Music, SoundCloud, and Deezer links, or any song name you type. Switch on the Music module for 18 ready-made /music commands, or make your own with music blocks. You set it up in BotGhost, the no-code Discord bot maker, and we host the bot.

PremiumMusic needs Premium on the bot, which is $12.50 a month. Making the bot is free.

Play Spotify, Apple Music, SoundCloud, and Deezer links

Members paste a link or type a song's name. The bot takes these links:

  • Spotify Song, album, and playlist links. A song name you type is searched on Spotify too.
  • Apple Music Song, album, and playlist links from music.apple.com.
  • SoundCloud Track and playlist links.
  • Deezer Track, album, and playlist links.
  • A playlist or album link adds up to 250 songs. You can set a lower limit.
  • New songs go to the end of the queue, play next, or go in at a spot you pick.
  • Add the Music Smart Search option to a command and Discord suggests up to 10 songs while members type.
The Add to Queue block's settings: a Song or link field with lofi beats typed in, Play next picked for where in the queue it goes, and a playlist limit of 250

The Music module and its 18 /music commands

Open Music in the dashboard and press Enable Music Commands. Your bot gets these straight away, and each one has its own on and off switch.

The Music page in the BotGhost dashboard, with the Pre-built Music Commands box and its Enable Music Commands button

Playing

  1. 01/music playPlays a song, an album, or a playlist from a name or a link
  2. 02/music pausePauses the song
  3. 03/music resumeCarries on after a pause
  4. 04/music skipSkips to the next song
  5. 05/music replayStarts the song again from the beginning
  6. 06/music seekJumps to a time in the song
  7. 07/music stopStops the music and clears the queue

The queue

  1. 08/music queueLists the queue and what's playing
  2. 09/music trackShows the song playing now, with its progress and album art
  3. 10/music removeTakes a song out of the queue by its number
  4. 11/music shuffleMixes up the order of the queue
  5. 12/music loopRepeats the song or the whole queue

Settings

  1. 13/music set-volumeTurns the volume up or down
  2. 14/music apply-filterAdds a filter like bass boost or nightcore
  3. 15/music clear-filtersTakes every filter off
  4. 16/music set-autoleavePicks whether the bot leaves when the queue ends
  5. 17/music set-autoplayTurns autoplay on or off
  6. 18/music disconnectMakes the bot leave the voice channel

The module adds two events as well. When a song starts, the bot sets the voice channel's status to that song, and it clears it again when the song ends.

Every command is a normal command made of blocks. Press Edit to change its replies in the builder, or Reset Commands to put them all back.

The Music module in the docs

Build your own music commands from 19 blocks

The Music Actions blocks are in the Discord bot command builder, next to every other block. That means a music command can check a member's roles, read what they typed, or post buttons, the same as any command you make.

  1. 1Create Music Player joins the member's voice channel, or one you choose, and can set the starting volume and loop.
  2. 2Add to Queue takes a song name or a link.
  3. 3Play Queue starts the music.

After that, there are blocks to skip to any spot in the queue, go back a song, seek, loop, shuffle, change the volume, or search for songs without queueing them.

Every music block in the docs
The first Music Actions blocks in the builder: Create Music Player, Add to Queue, Play Queue, Pause Music, Resume Music, and Stop Music
The Apply Audio Filter block's settings with Nightcore picked at Medium strength

Audio filters like bass boost, nightcore, and 8D

Use /music apply-filter, or the Apply Audio Filter block in your own commands, to change how the music sounds. Bass Boost comes in low, medium, and high. Clear Filters takes them all off again.

  • Bass Boost
  • Treble Boost
  • Nightcore
  • Vaporwave
  • Daycore
  • Slow Motion
  • Chipmunk
  • 8D Audio
  • Karaoke
  • Low Pass
  • Distortion
  • Tremolo
  • Vibrato
  • Channel Mix / Stereo
  • Soft / Ear Protection
  • Custom Pitch
  • Custom Speed
  • Custom Equalizer

The custom ones take your own numbers: a pitch, a speed, or a level for each of the equalizer's 15 bands, from 25 Hz to 16 kHz.

Music events and now playing messages

The builder has 33 music events, so your bot can post a message when a song starts, when the queue runs out, or when someone changes the volume. Music variables put the song, the artist, and the queue into that message.

Some of the music events
  • When a track starts playing
  • When a track finishes playing
  • When the queue finishes playing
  • When a track is added to the queue
  • When player volume is changed
  • When bot disconnects from voice channel
More about Discord bot events

Make a now playing card with the queue

Put music variables into a Send or Edit a Message block and the bot fills them in each time it runs. Use them in a command of your own, or in one of the /music commands after pressing Edit. The bot builds this card from these variables:

  • {music_current_track_title}the song playing now
  • {music_current_track_author}its artist
  • {music_position_formatted_with_duration}how far in it is, like 1:12/3:41
  • {music_loop_mode_text}Off, Track, or Queue
  • {music_queue_formatted_list}a numbered list of what’s next, with each length
  • {music_queue_length}how many songs are waiting
  • {music_queue_total_duration_formatted}how long they all last

Music on the free plan and on Premium

Music needs Premium on the bot. The rest of BotGhost works on the free plan, so you can make the bot and set up your server first.

FeatureFreePremium
Music module: 18 /music commandsNot includedIncluded
19 music blocks in the builderNot includedIncluded
33 music eventsNot includedIncluded
Song suggestions as members typeNot includedIncluded
Custom commands and events3 of eachUnlimited
ServersUp to 5Unlimited

Or $75 a year for one bot. Every plan is on the Premium page.

Discord music bot questions

Still stuck? Ask in the BotGhost Discord, or read the docs for the Music module and the music blocks.

Create a bot on BotGhost and invite it to your server. Put Premium on it, open Music in the dashboard, and press Enable Music Commands. Then join a voice channel and type /music play with a song name or a link.

Read the Music module docs

Make your Discord music bot

Create the bot for free and invite it to your server. Add Premium when you're ready to switch the music on.

Create your bot for free