Setting up Sinusbot on ServerPrism
Get your Sinusbot music bot running on ServerPrism. This guide covers Discord setup, server configuration, and first launch.
Sinusbot is a powerful music bot for Discord and TeamSpeak. This guide focuses on getting your Sinusbot instance running for Discord on your ServerPrism server.
Create your bot in Discord Developer Portal
- Go to the Discord Developer Portal.
- Click New Application.
- Give your application a name (e.g., "My Sinusbot") and click Create.
- Navigate to the Bot tab on the left sidebar.
- Click Add Bot, then Yes, do it!.
- Under TOKEN, click Reset Token, then Yes, do it! to reveal your bot's token. Copy this token immediately; you will need it for your ServerPrism configuration. Keep this token private!
- Scroll down to Privileged Gateway Intents.
- Enable the Message Content Intent toggle. Sinusbot needs this to read commands and links from messages.
Invite the bot to your server
- In the Discord Developer Portal, go to the OAuth2 tab, then URL Generator.
- Under SCOPES, select
bot. - Under BOT PERMISSIONS, select the following:
Read Messages/View ChannelsSend MessagesConnectSpeakUse Voice Activity
- Copy the generated URL at the bottom of the page.
- Paste this URL into your browser and press Enter. Select the Discord server you want to add the bot to and authorize it.
Order on ServerPrism
You've already ordered your Discord Bots product and selected Sinusbot as your runtime. For a music bot, 1 GB of RAM is usually sufficient for a single instance. Your server is now deployed in your chosen region.
Configure startup variables
Your Sinusbot instance on ServerPrism uses environment variables for configuration. You set these in the Startup tab of your server panel.
- BOT_TOKEN: Paste the bot token you copied from the Discord Developer Portal here.
- PREFIX: Set the command prefix for your bot (e.g.,
!). Users will use this before commands like!play. - TS3_ENABLED: Set to
falseif you are only using Discord. (Sinusbot is also a TeamSpeak bot). - TS3_API_KEY: Leave blank if
TS3_ENABLEDisfalse. - YOUTUBE_API_KEY: (Optional, but highly recommended for YouTube playback). Obtain a YouTube Data API v3 key from the Google Cloud Console. Without this, YouTube playback may be unreliable or fail.
Refer to the Startup tab in your panel for all available configuration options.
First start
- After setting your environment variables in the Startup tab, navigate to the Console tab.
- Click the Start button.
- Monitor the console output. A successful start will show messages indicating the bot is connecting to Discord and initializing its services. Look for messages like "Discord bot connected!" or similar.
- Check your Discord server. Your bot should appear online in your member list.
- Join a voice channel and try a command, e.g.,
!play [YouTube URL](using your configured prefix).
Common issues
- Bot not coming online/Token rejected: Double-check your
BOT_TOKENin the Startup tab. Ensure there are no extra spaces and it's the exact token from the Discord Developer Portal. - Bot online but not responding to commands: Verify the Message Content Intent is enabled in the Discord Developer Portal under your bot's settings. Also, ensure the bot has the necessary permissions (especially
Send Messages) in your Discord server's channel settings. - YouTube playback issues: Ensure you have a valid
YOUTUBE_API_KEYconfigured. Without it, YouTube functionality is severely limited or broken. - Bot doesn't join voice channel: Ensure the bot has
ConnectandSpeakpermissions in the voice channel you are in.
Next steps
Explore Sinusbot's advanced features, such as adding more music sources or configuring custom commands. Refer to the official Sinusbot documentation for in-depth information on its capabilities.