Skip to content

Set Up JMusicBot as a Discord Music Bot

Learn how to set up JMusicBot as a music bot on your Discord bot server: add your token and User ID, link a Google account for YouTube, and play your first song.

23 November 20263 min read22 Views0 helpful

Introduction

Want a Discord music bot for your server without having to run it on your own PC? With a Discord bot server from ZAP-Hosting, you can install the music bot JMusicBot from our Marketplace in just a few clicks. No custom code or manual hosting required. JMusicBot plays music from YouTube, SoundCloud, Bandcamp, Twitch, and internet radio, and is controlled using slash commands such as /play.

Warning

EvoBot currently doesn't play music. The EvoBot preset can only play YouTube, and YouTube playback is currently not working with it. Use JMusicBot for music instead.

Order a Discord Bot Server

If you don't have a Discord bot server yet, you can order one through our shop as usual. For details about ordering, see the article Discord Bot Server: Introduction.

Create a Bot in the Discord Developer Portal

For JMusicBot to sign in to Discord, you need your own bot application with a Discord bot token:

  1. Open the Discord Developer Portal and sign in.
  2. Create a new application (or select an existing one).
  3. Go to Bot → Token → Reset Token and copy the token.
  4. On the same page, enable Message Content Intent under Privileged Gateway Intents, then click Save Changes. Without this intent, Discord will reject the sign-in and the bot won't start.
Warning

Never share your bot token with anyone. It works like a password for your bot. If it falls into the wrong hands, someone could take over your bot.

To let your bot join your server, you need to authorize it once using an invite link. Create this link in the Developer Portal under OAuth2 → URL Generator: select the bot scope and at least the permissions to read and send messages, Embed Links, Connect, and Speak. Open the generated link, select your server, and click Authorize.

Find Your Discord User ID

JMusicBot also needs your Discord User ID so it knows who owns it. As the owner, you can use owner commands and will later receive the code for linking your Google account in a direct message.

  1. Open User Settings in Discord (the gear icon next to your name).
  2. Under Advanced (called Developer in newer Discord versions), turn on Developer Mode.
  3. Click your avatar in the bottom-left corner and select Copy User ID.

Your User ID is a 17- to 20-digit number, not your username.

Install JMusicBot from the Marketplace

In your Discord bot server dashboard, open the Marketplace tab, search for JMusicBot, and click Install.

Info

Only one Marketplace preset can be active at a time on each Discord bot server. If you want to use a different preset later, remove JMusicBot first using the Remove button.

The installation runs automatically in the background. The preset sets the runtime environment (Java) and startup file (JMusicBot.jar) for you, so you don't need to configure anything here.

Add Your Token and User ID

Open the Settings tab on your Discord bot server. Under Bot configuration, enter:

  • Discord Bot Token: the token from the Developer Portal
  • Owner User ID: your Discord User ID

Then click Save.

Start the Bot

Start your bot using the green Start button in the dashboard. After a short while, the status in the top-right corner will show Online.

You can view your bot's live output at any time in the Console tab. For example, this lets you see if the token was entered incorrectly or if the Message Content Intent is missing.

YouTube requires bots on servers to sign in to play most videos. That's why JMusicBot links a Google account once when it first starts:

  1. Start the bot. Once it's connected to Discord, it will show a code in the Console tab and also send it to you in a Discord direct message.
  2. Go to google.com/device, enter the code, and sign in with a Google account.
  3. Confirm access. Your bot can now play YouTube.
Tip

We recommend using a secondary account rather than your personal Google account. You only need to link it once, and the connection will remain saved.

SoundCloud, Bandcamp, Twitch, and internet radio also work without a Google account.

Play Music

Join a voice channel on your Discord server and enter /play followed by a song title or a link. The first time, it may take about a minute for the slash commands to appear in Discord.

Conclusion

That's it—your own Discord music bot is now running around the clock on your Discord bot server, without needing to keep your PC turned on. If you have any other questions or need help, our support team is here for you every day! 🙂

Free tools

Tools for Discord servers and bots

View all

FAQ

Frequently asked questions

In your Discord bot server dashboard, open the Marketplace tab, search for JMusicBot, and click Install. The preset sets the runtime environment (Java) and startup file for you.
The EvoBot preset can only play YouTube, and YouTube playback is currently not working with it. Use JMusicBot for music instead.
In the Settings tab, under Bot configuration, enter your Discord bot token from the Developer Portal and your Discord User ID as the Owner User ID, then click Save.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.