Welcome to Rosy Music Bot
Rosy is a powerful and easy-to-use Discord music bot built with Discord.js and Distube. This guide will walk you through everything you need to get started.Prerequisites
Before setting up Rosy Music Bot, make sure you have:- Node.js (version 18.17.0 or higher) - Download here
- npm (normally comes with Node.js)
- A Discord Application and bot token
- FFmpeg (included in dependencies, but manual installation may be needed)
The bot uses ffmpeg-static by default, but if you encounter issues, you may need to install FFmpeg manually.
Installation Steps
1. Clone the Repository
2. Install Dependencies
3. Configure Environment Variables
Create a.env file in the root directory with the following:
4. Obtain Required API Keys
Discord Bot Token
- Go to Discord Developer Portal
- Create a new application or select an existing one
- Navigate to the “Bot” section
- Copy the bot token
YouTube API Key
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the YouTube Data API v3
- Create credentials and copy the API Key
Spotify API Credentials
- Go to Spotify Developer Dashboard
- Create a new application
- Copy the Client ID and Client Secret
5. Start the Bot
First Time Configuration
Invite the Bot to Your Server
See the Inviting Bot guide for detailed instructions on generating an invite link and adding the bot to your server.Required Permissions
The bot needs the following permissions:- Read Messages/View Channels - To see commands
- Send Messages - To respond to commands
- Embed Links - To display rich embeds
- Connect - To join voice channels
- Speak - To play audio
- Use Voice Activity - For voice playback
Running Your First Commands
Play a Song
Join a voice channel and type:Basic Playback Controls
Manage the Queue
Get Help
Common Workflows
Playing Multiple Songs
- Use
r!playto add the first song - Continue using
r!playto add more songs to the queue - Use
r!queueto see all queued songs - Songs will play automatically in order
Managing Playback
- Join a voice channel before using commands
- Use
r!pauseif you need to pause temporarily - Use
r!resumeto continue - Use
r!skipto jump to the next song - Use
r!stopto end the session and clear the queue
Adjusting Audio
Volume is set per guild (server) and persists during the current session.
Tips for New Users
What’s Next?
Now that you have the basics down, explore:- Inviting Bot - Add the bot to multiple servers
- Troubleshooting - Fix common issues
- Best Practices - Optimize your bot experience
- Commands Reference - Detailed command documentation
Getting Help
If you encounter issues:- Check the Troubleshooting guide
- Verify all prerequisites are installed correctly
- Ensure your
.envfile has valid credentials - Check the bot’s console logs for error messages