Setting up Muse on ServerPrism
Get your Muse Discord music bot running on ServerPrism with this step-by-step setup guide.
Muse is a self-hosted Discord music bot that streams audio from YouTube and Spotify. This guide walks you through creating your bot in Discord, inviting it to your server, and configuring it on your ServerPrism instance.
Create your bot in Discord Developer Portal
- Go to the Discord Developer Portal.
- Click New Application.
- Give your application a name (e.g.,
Muse Bot) and click Create. - In the left sidebar, navigate to Bot.
- Click Add Bot and confirm by clicking Yes, Do It!.
- Under TOKEN, click Reset Token and then Yes, do it! to reveal your bot token. Copy this token immediately and keep it safe. You will need it later.
- Scroll down to Privileged Gateway Intents.
- Enable the Message Content Intent toggle. Muse needs this to read commands and song requests from messages.
Invite the bot to your server
- In the left sidebar, go to OAuth2 > URL Generator.
- Under SCOPES, select
bot. - Under BOT PERMISSIONS, select the following:
Read Messages/View ChannelsSend MessagesEmbed LinksAttach FilesManage MessagesRead Message HistoryConnectSpeakUse Voice ActivityPriority SpeakerMute MembersDeafen MembersMove Members
- Copy the generated URL at the bottom of the page.
- Paste the URL into your browser, select your Discord server from the dropdown, and click Authorize.
Order on ServerPrism
If you haven't already, order your Discord Bots server on ServerPrism. For Muse, 1 GB of RAM is usually sufficient for a moderate number of users and concurrent streams. Choose a region closest to your primary user base for the best audio experience. Once your server is deployed, you'll receive access to your panel.
Configure startup variables
Your ServerPrism panel's Startup tab allows you to set environment variables required by Muse. Set the following variables:
BOT_TOKEN: Paste the bot token you copied from the Discord Developer Portal.PREFIX: The command prefix your bot will use (e.g.,!). Users will type!playto use the bot.OWNER: Your Discord user ID. This grants you special administrative commands. To get your user ID, enable Developer Mode in Discord (User Settings > Advanced), then right-click your username and selectCopy ID.SPOTIFY_CLIENT_ID: (Optional) Your Spotify application client ID. Create a Spotify application at Spotify for Developers.SPOTIFY_CLIENT_SECRET: (Optional) Your Spotify application client secret. Found next to your client ID on the Spotify dashboard.YOUTUBE_API_KEY: (Optional) A YouTube Data API v3 key. Obtain one from the Google Cloud Console.
First start
After setting your startup variables, go to the Console tab in your ServerPrism panel and click Start. Watch the console output for messages indicating successful connection to Discord. You should see messages like [INFO] Logged in as Muse Bot#1234.
Once the bot is online, go to your Discord server and try a command like !ping (using your chosen prefix). The bot should respond with Pong!.
Common issues
- Bot token rejected/Invalid Token: Double-check that
BOT_TOKENin your Startup tab is exactly the token copied from the Discord Developer Portal, with no extra spaces or characters. - Bot online but not responding to commands: Ensure you enabled the Message Content Intent in the Discord Developer Portal under the Bot section. Also, verify the bot has
Send MessagesandRead Messages/View Channelspermissions in your Discord server. - Bot not joining voice channels or playing audio: Check that the bot has
ConnectandSpeakpermissions in the voice channel it's trying to join.
Next steps
Explore Muse's commands by typing !help in your Discord server. You can find more detailed usage instructions and advanced configuration options on the Muse GitHub page.