Problem with my radio bot

Hello to everyone! Recently I changed my vps offer for something in the same performance as my old one but for less money, the server is in ubuntu 22.04 like the old one, all is installed the same, same version of npm and nodejs. When I start my bot, it turns on but if I do the command /radio-other for example and I choose a proposed radio, the bot puts itself well in the voice room but does not play any music, which is annoying, I authorized the range 50000:65535 in udp output on my vps thinking that it could come from there but it does not change anything, I tried to reboot the server or the firewall by testing but it always does the same thing. If you have any ideas, I'm interested! Sorry for the few mistakes I made, I'm not good in English.
14 Replies
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
UltraLion
UltraLion•2y ago
discord version : discord.js@14.4.0 node version : v16.13.0 I also tried to delete the node_module and package-lock.json folder but it doesn't change anything
{
"name": "radiobox",
"version": "1.1.0",
"description": "Bot discord Radio Box",
"main": "bot.js",
"scripts": {
"lint": "eslint --ext .js,.ts . . --fix",
"start": "node bot",
"deploy": "node deploy"
},
"keywords": [
"discord",
"bot",
"nodejs"
],
"author": "UltraLion#0404",
"license": "ISC",
"devDependencies": {
"eslint": "^8.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0"
},
"dependencies": {
"@discordjs/opus": "github:discordjs/opus",
"@discordjs/rest": "^1.0.1",
"@discordjs/voice": "^0.11.0",
"better-sqlite3": "^7.4.4",
"common-tags": "^1.8.2",
"discord.js": "^14.4.0",
"dotenv": "^16.0.1",
"ffmpeg-static": "^5.1.0",
"libsodium-wrappers": "^0.7.10",
"moment": "^2.29.4",
"moment-duration-format": "^2.3.2",
"opusscript": "^0.0.8",
"os": "^0.1.2",
"path": "^0.12.7",
"quick.db": "^7.1.3",
"sodium-native": "^3.4.1",
"systeminformation": "^5.12.6",
"tweetnacl": "^1.0.3"
}
}
{
"name": "radiobox",
"version": "1.1.0",
"description": "Bot discord Radio Box",
"main": "bot.js",
"scripts": {
"lint": "eslint --ext .js,.ts . . --fix",
"start": "node bot",
"deploy": "node deploy"
},
"keywords": [
"discord",
"bot",
"nodejs"
],
"author": "UltraLion#0404",
"license": "ISC",
"devDependencies": {
"eslint": "^8.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0"
},
"dependencies": {
"@discordjs/opus": "github:discordjs/opus",
"@discordjs/rest": "^1.0.1",
"@discordjs/voice": "^0.11.0",
"better-sqlite3": "^7.4.4",
"common-tags": "^1.8.2",
"discord.js": "^14.4.0",
"dotenv": "^16.0.1",
"ffmpeg-static": "^5.1.0",
"libsodium-wrappers": "^0.7.10",
"moment": "^2.29.4",
"moment-duration-format": "^2.3.2",
"opusscript": "^0.0.8",
"os": "^0.1.2",
"path": "^0.12.7",
"quick.db": "^7.1.3",
"sodium-native": "^3.4.1",
"systeminformation": "^5.12.6",
"tweetnacl": "^1.0.3"
}
}
and this is my package.json file
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Bouns 🌿
Bouns 🌿•2y ago
I updated my VPS to 22.04 and my bot didn't play music anymore, I had to go back to 20.04 to not have this bug anymore
UltraLion
UltraLion•2y ago
oh, really? it's true that my old version was 20.04! I hadn't thought of that mmyeaThink
Bouns 🌿
Bouns 🌿•2y ago
@ultralion, I really struggled on my side to realize that it came from the version of ubuntu.
UltraLion
UltraLion•2y ago
I will try to change the version just in case but I need to make a backup of everything I have before on my vps 😭
Bouns 🌿
Bouns 🌿•2y ago
Yes, your bot are actually broken <:sad_cat:873457028981481473>
UltraLion
UltraLion•2y ago
yes <:sad_cat:873457028981481473> I'm too lazy to backup all my files and reinstall my vps <:PB_pepesit_sad:769654458148847627> It was indeed the version of ubuntu that had a problem, I switched back to version 20.04 and everything works for the best! Thanks for the tips 😄 How did you find that it came from the ubuntu version?
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Bouns 🌿
Bouns 🌿•2y ago
hrough testing But I still don't know why with an ubuntu 22 version it doesn't work Discord.js/voice package has many more problems than the old version integrated in discord V12...
UltraLion
UltraLion•2y ago
Okay thank you very much for your answers to all! I will be able to close the post now 😄
Bouns 🌿
Bouns 🌿•2y ago
You use discord.js/voice for stream radio ?
UltraLion
UltraLion•2y ago
yes !