ZerioDev / Music-bot

A complete code to download for a cool Discord music bot !
https://discord.gg/5cGSYV8ZZj
GNU General Public License v3.0
864 stars 1.05k forks source link

Music stopped #294

Closed farizrifqi closed 8 months ago

farizrifqi commented 8 months ago

I haven't made any changes except for the bot token.

When I run the bot locally, the music plays until the end without any issues. However, when I run it on my VPS, the bot plays music, but it stops abruptly halfway through without disconnecting from the channel, and there's no error output in the console.

My VPS has the following specifications: 4GB of RAM and 2 vCPUs (Location: USA, my voice channel server on Asia). It shouldn't be a problem, right?

I just want to make sure if someone has any ideas about this issue.

chanenl

iGameCreep commented 8 months ago

Usually, when it tells that no more songs are in the queue right after starting playing (no sound emitted), it is related to FFmpeg: try downloading it directly from your VPS or try maybe using Yarn instead of NPM

farizrifqi commented 8 months ago

Thanks, I reinstall the FFmpeg from different sources and it works.