umutxyp / MusicBot

An enhanced music bot that is compatible with discord.js v14 and works with slash commands. Discord music bot codes that can be used on any server and are simple to install.
https://discord.gg/codes
976 stars 1.07k forks source link

music doesn't play at all when the bot is on Ubuntu #105

Closed RealAmethyst closed 1 year ago

RealAmethyst commented 1 year ago

Hi. I have used this bot on windows with no problem. I got myself a VPS server ans want to host the bot there. I copy over the main bot files, then install NPM 17, which is outdated by the way. Then I run npm install and everything installs fine. I get the bot to connect and everything is going good until I try to play something. Nothing happens, well it either says queue is empty after like 3 seconds, which is strange. I have no idea how to fix this. Any help? Or is this something that needs to be fixed in the bot code itself?

SJ-Tom commented 1 year ago

Hey, I have the same problem. Yesterday I tried the bot for the first time on my computer. Everything works fine. But as I started the bot today on my Ubuntu server, the bot works perfectly but after executing /play normal YT link or else the bot says Queue is empty. You can play some more music, byebye... ✅ and nothing happened anymore. Does anyone has a fix for that problem?

andybergner commented 1 year ago

my music bot works without problems, on ubuntu. i only use a newer package version for '@discordjs/voice' update from '0.14.0' -> '0.16.0'

Maybe that'll work

SJ-Tom commented 1 year ago

Unfortunately not. I had the 0.16.0 already and an update showed unfortunately no change

pratamaid commented 1 year ago

I have the same problem for the last 3 months and I haven't found a solution yet

RealAmethyst commented 1 year ago

Hi again. I fixed it by running a VPN on the server. I always got the error code 429 and I believe a youtube cookie can fix this. Not sure how to get one, but googling that issue seemed to give me the idea that a youtube cookie would fix it. This bot does not support that as far as I know, so a VPN will do the trick for now.

SJ-Tom commented 1 year ago

What does a VPN change on the ffmpeg package?

pratamaid commented 1 year ago

Maybe your opinion is right @Gamulation, because i can play songs from soundcloud without any problem but i have problem with youtube and spotify

RealAmethyst commented 1 year ago

Exactly. I found out that google blocks public static IP addresses it seems, at least on Youtube, as I too could play soundcloud with no issues. Using a VPN fixed this issue for me.