ZerioDev / Music-bot

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

Bot go offline automatically after playing a song #293

Closed WistfulPerson closed 1 year ago

WistfulPerson commented 1 year ago

Bot go offline automatically after playing a song and doesn't even play a song after doing /play it enters the room and go offline without playing the song or doing anything

marcelog09 commented 1 year ago

+UP

nodejs log:

C:\MusicBOT-node\node_modules\discord-player\dist\index.js:580 const exception = new err.type(err.createError(...args)); ^

ERR_NO_RESULT: Could not extract stream for this track

evalmachine.:426 Ama=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,oC(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};Ila(ncode); ^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token at new Script (node:vm:94:7) at exports.decipherFormats (C:\MusicBOT-node\node_modules\ytdl-core\lib\sig.js:116:51) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async exports.getInfo (C:\MusicBOT-node\node_modules\ytdl-core\lib\info.js:401:17) at Proxy. (C:\MusicBOT-node\node_modules\discord-player\dist\index.js:580:25) at #throw (C:\MusicBOT-node\node_modules\discord-player\dist\index.js:1865:80) at GuildQueuePlayerNode.play (C:\MusicBOT-node\node_modules\discord-player\dist\index.js:1810:56) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (C:\MusicBOT-node\commands\music\play.js:62:33)

Node.js v18.17.1

WearSoLiD commented 1 year ago

Same issue

nodejs log:

E:\ErgoProxy\node_modules\discord-player\dist\index.js:591 const exception = new err.type(err.createError(...args)); ^

ERR_NO_RESULT: Could not extract stream for this track

evalmachine.:426 Ama=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,oC(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};Ila(ncode);

^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token at new Script (node:vm:100:7) at exports.decipherFormats (E:\ErgoProxy\node_modules\ytdl-core\lib\sig.js:116:51) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async exports.getInfo (E:\ErgoProxy\node_modules\ytdl-core\lib\info.js:401:17) at Proxy. (E:\ErgoProxy\node_modules\discord-player\dist\index.js:591:25) at #throw (E:\ErgoProxy\node_modules\discord-player\dist\index.js:1884:80) at GuildQueuePlayerNode.play (E:\ErgoProxy\node_modules\discord-player\dist\index.js:1829:56) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (E:\ErgoProxy\commands\music\play.js:62:33)

Node.js v18.16.0

Nickeldon commented 1 year ago

Hi there, your issues are more likely due to the issue affecting every ytdl-core installations at the time.

If you are already part of our discord community, I invite you to follow this issue thread in order to fix your problem:

https://discord.com/channels/773639842449850368/1150095560200687690

@Nikkerudon

marcelog09 commented 1 year ago

Hi there, your issues are more likely due to the issue affecting every ytdl-core installations at the time.

If you are already part of our discord community, I invite you to follow this issue thread in order to fix your problem:

https://discord.com/channels/773639842449850368/1150095560200687690

@Nikkerudon

Edit: Solved. Thanks!

WistfulPerson commented 1 year ago

thanks for the help it solved the problem :)