System Requirements
Before installing Rosy Music Bot, ensure your system meets these requirements:- Node.js: Version 18.17.0 or higher
- npm: Usually comes bundled with Node.js
- Git: For cloning the repository
- FFmpeg: Optional but recommended for audio processing
- Operating System: Windows, macOS, or Linux
The bot uses
ffmpeg-static as a dependency, which includes FFmpeg automatically. Manual installation is only needed if you encounter audio processing issues.Installing Node.js
Windows Installation
- Visit the official Node.js website
- Download the LTS (Long Term Support) version installer
- Run the installer and follow the setup wizard
- Keep all default settings unless you have specific requirements
- Verify installation by opening Command Prompt and running:
macOS Installation
Using Official Installer:Verify installation:
- Visit nodejs.org
- Download the macOS installer
- Run the
.pkgfile and follow instructions
Installing FFmpeg (Optional)
FFmpeg is included viaffmpeg-static package, but manual installation can resolve certain audio issues.
Windows - Using Chocolatey
Windows - Using Chocolatey
- Install Chocolatey if you don’t have it
- Open PowerShell as Administrator
- Run the following command:
- Restart your terminal to apply PATH changes
- Verify installation:
macOS - Using Homebrew
macOS - Using Homebrew
Linux - Using Package Manager
Linux - Using Package Manager
Ubuntu/Debian:Fedora:Arch Linux:Verify installation:
Cloning the Repository
Installing Dependencies
Once you’ve cloned the repository, install all required Node.js packages:package.json, including:
discord.js(v14.25.1) - Discord API wrapperdistube(v5.2.3) - Music system handler@distube/spotify(v2.0.2) - Spotify integration@distube/yt-dlp(v2.0.1) - YouTube downloader@discordjs/voice(v0.19.0) - Voice connection handlerffmpeg-static(v5.3.0) - FFmpeg binarydotenv(v17.2.3) - Environment variable loader- And other supporting packages
Troubleshooting Common Issues
Critical: yt-dlp Configuration Fix
Critical: yt-dlp Configuration Fix
After running This parameter causes
npm install, you must fix a configuration issue in the yt-dlp plugin:Location: node_modules/@distube/yt-dlp/dist/index.jsFind these lines (approximately lines 147 and 177) and comment them out:NO_RESULT and playback errors. After making this change, restart the bot.FFmpeg Not Found Error
FFmpeg Not Found Error
If you see FFmpeg-related errors:
- Verify FFmpeg installation:
- If command not found, install FFmpeg manually (see FFmpeg section above)
- On Windows, restart your terminal or computer after installation
- Ensure FFmpeg is in your system PATH
Node.js Version Error
Node.js Version Error
If you see errors about Node.js version:
- Check your current version:
- Ensure it’s 18.17.0 or higher
- If it’s lower, update Node.js using the installation methods above
Permission Errors on Linux/macOS
Permission Errors on Linux/macOS
If you encounter permission errors during Then run
npm install:Don’t use sudo with npm. Instead, configure npm to use a different directory:npm install again without sudo.Git Not Installed
Git Not Installed
If
git command is not found:- Windows: Download from git-scm.com
- macOS:
brew install gitor install Xcode Command Line Tools - Linux:
sudo apt install git(Ubuntu/Debian) orsudo dnf install git(Fedora)
Next Steps
Now that you’ve installed the bot and its dependencies, proceed to:- Discord Bot Setup - Create your Discord application and bot
- API Keys - Get YouTube and Spotify API credentials
- Configuration - Configure your bot settings
Keep your installation directory in a safe location. You’ll need to access it for configuration and running the bot.