Overview
This guide covers common issues you might encounter with Rosy Music Bot and their solutions. If you don’t find your issue here, check the console logs for more detailed error messages.Playback Errors
NO_RESULT Error or Playback Fails
NO_RESULT Error or Playback Fails
Problem
The bot returns “NO_RESULT” error or fails to play music after searching for songs.Critical Solution
After runningnpm install, you must edit the yt-dlp configuration file:File Path: node_modules/@distube/yt-dlp/dist/index.jsFind lines with noCallHome: true (approximately at lines 147 and 177) and comment them out:Why This Happens
ThenoCallHome: true parameter causes playback errors with yt-dlp. Commenting it out fixes the issue.Steps
- Navigate to
node_modules/@distube/yt-dlp/dist/index.js - Search for
noCallHome: true(appears twice) - Add
//at the beginning of both lines - Save the file
- Restart the bot with
npm start
Prevention
Consider creating a post-install script to automate this fix:Video Unavailable or Not Found
Video Unavailable or Not Found
Age-Restricted Content Error
Age-Restricted Content Error
Problem
Error: “Contenido restringido por edad” or “age restricted”Cause
The video requires age verification on YouTube.Solution
Unfortunately, the bot cannot play age-restricted content. Try:- Find an alternative version of the song
- Use the official music video if available
- Search for a live performance or cover version
FFmpeg Errors
FFmpeg Not Found or Installation Issues
FFmpeg Not Found or Installation Issues
Problem
Errors related to FFmpeg not being found or audio encoding failures.Solution 1: Use Included FFmpeg
The bot includesffmpeg-static by default. If this doesn’t work, try manual installation.Solution 2: Manual Installation
Windows (using Chocolatey)
- Install Chocolatey
- Open PowerShell as administrator:
- Restart your terminal or computer
Linux
macOS
Verify Installation
On Windows, if the command isn’t recognized after installing with Chocolatey, restart your terminal or computer for the PATH changes to take effect.
FFmpeg Encoding Errors
FFmpeg Encoding Errors
Command Issues
Bot Not Responding to Commands
Bot Not Responding to Commands
Problem
Bot doesn’t respond when you send commands.Checklist
- Verify prefix: Make sure you’re using the correct prefix:
r!
- Check bot status: Ensure the bot is online (green/idle status)
- Verify permissions: Bot needs “Read Messages” and “Send Messages” permissions
-
Check token: Verify your
.envfile has the correct Discord token
- Console logs: Check the bot’s console for error messages
- Test with r!help: Try the help command to see if the bot responds at all
Command Works But No Response
Command Works But No Response
Problem
Command executes but bot doesn’t send a message.Solutions
- Check embed permissions: Bot needs “Embed Links” permission
- Verify channel permissions: Ensure bot can send messages in that specific channel
- Check message filters: Some servers have automated moderation bots that might delete bot messages
Permission Issues
Insufficient Permissions Error
Insufficient Permissions Error
Problem
Error: “Permisos insuficientes” or “Missing Permissions”Common Scenarios
Can’t Join Voice Channel
Required permissions:- Connect
- Speak
- Use Voice Activity
- Right-click the voice channel
- Edit Channel → Permissions
- Add bot’s role with Connect and Speak permissions
Can’t Send Messages
Required permissions:- Send Messages
- Embed Links
- Check channel permissions
- Ensure bot’s role has “Send Messages” and “Embed Links”
Can’t See Commands
Required permission:- Read Messages/View Channels
- Enable “View Channel” for bot’s role in channel settings
Permission Denied in Voice Channel
Permission Denied in Voice Channel
Problem
Bot can’t connect to specific voice channels.Solutions
-
Check voice channel permissions:
- Right-click voice channel → Edit Channel
- Go to Permissions tab
- Ensure bot role has “Connect” enabled
- Check user limit: If the channel is full, the bot can’t join
- Region restrictions: Some voice channels may have region locks
- Role hierarchy: Ensure bot’s role isn’t restricted by higher roles
Voice Connection Problems
Bot Joins But No Audio
Bot Joins But No Audio
Problem
Bot successfully joins voice channel but no audio plays.Solutions
- Check Speak permission: Verify bot has “Speak” permission
- Verify FFmpeg: Ensure FFmpeg is properly installed
-
Check Discord voice settings:
- User Settings → Voice & Video
- Ensure correct output device is selected
- Check if Discord is muted
- Restart voice connection:
- Check voice dependencies: Look at console logs for voice dependency report
Bot Disconnects Randomly
Bot Disconnects Randomly
Problem
Bot disconnects from voice channel unexpectedly.Possible Causes
- Network instability: Poor internet connection
- Discord API issues: Temporary Discord outages
- Server region: Voice server latency
- Memory issues: Bot running out of memory
Solutions
- Check network: Ensure stable internet connection
- Monitor resources: Check CPU and memory usage
- Update dependencies:
- Increase event listeners (already configured in the bot):
Voice Connection Timeout
Voice Connection Timeout
Problem
Error: “VOICE_CONNECT_FAILED” or connection timeout.Solutions
- Check Discord status: Visit Discord Status
- Verify network: Ensure ports aren’t blocked by firewall
- Update @discordjs/voice:
- Check voice dependencies: The bot logs dependency report on startup
- Reinstall voice dependencies:
API and Rate Limiting
YouTube API Rate Limit
YouTube API Rate Limit
Problem
Excessive API calls causing rate limit errors.Solutions
- Use URLs when possible: Direct YouTube URLs don’t require search API calls
- Verify API key: Ensure your YouTube API key is valid
- Check quota: Visit Google Cloud Console to check your API quota
- Request quota increase: If needed, request higher quota limits from Google
Spotify API Issues
Spotify API Issues
Problem
Spotify links not working or authentication errors.Solutions
- Verify credentials: Check
.envfile has correct Spotify Client ID and Secret
- Test credentials: Verify they work on Spotify Dashboard
- Check Spotify status: Visit Spotify Status
- Reinstall plugin:
Discord API Rate Limiting
Discord API Rate Limiting
Problem
Bot being rate limited by Discord API.Causes
- Too many commands sent too quickly
- Multiple bots on same token (don’t do this)
- Bot in too many servers with same infrastructure
Solutions
- Implement cooldowns: Add command cooldowns (if needed)
- Avoid spam: Don’t send commands repeatedly
- Check for loops: Ensure bot isn’t stuck in a command loop
- Monitor console: Look for rate limit warnings
Configuration Issues
Environment Variables Not Loading
Environment Variables Not Loading
Bot Token Invalid
Bot Token Invalid
Problem
Error: “Invalid token” or bot won’t login.Solutions
-
Regenerate token:
- Go to Discord Developer Portal
- Select your application
- Bot section → Reset Token
- Copy new token to
.env
- Check for spaces: Ensure no extra spaces in token
- Verify token format: Discord bot tokens are long alphanumeric strings
Search and Queue Issues
Search Returns No Results
Search Returns No Results
Selection Menu Times Out
Selection Menu Times Out
Additional Help
Still Having Issues?
- Check console logs: Most errors are logged with details
- Verify all prerequisites: Node.js 18.17.0+, FFmpeg, valid API keys
- Test in isolation: Try the bot in a test server
- Update dependencies: Run
npm updateto get latest versions - Reinstall: Delete
node_modulesand runnpm installagain
Getting Support
When asking for help, provide:- Error message from console
- Command that caused the error
- Node.js version (
node --version) - Operating system
- What you’ve already tried
Related Resources
- Getting Started - Initial setup guide
- Best Practices - Optimize your configuration
- Commands Reference - Detailed command docs