Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot joins then disconnects instantly when playing a song. #59

Open
xbxyi opened this issue Nov 15, 2023 · 4 comments
Open

Bot joins then disconnects instantly when playing a song. #59

xbxyi opened this issue Nov 15, 2023 · 4 comments

Comments

@xbxyi
Copy link

xbxyi commented Nov 15, 2023

I queue a song it joins disconnects in terminal this is info

[ 15/10/2023 | 22:51:41 ] Finished playing the music : THEKIDSZN - CHOSEN (OFFICIAL MUSIC VIDEO)
[ 15/10/2023 | 22:51:41 ] No songs left in queue
[ 15/10/2023 | 22:51:51 ] Looking for music details...
[ 15/10/2023 | 22:51:52 ] Got music details, preparing the music to be played...
[ 15/10/2023 | 22:51:52 ] Started playing the music : The Chosen: Season One, Episodes 1 & 2
evalmachine.:426
koa=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,JB(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};gma(ncode);

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

SyntaxError: Invalid or unexpected token
at new Script (node:vm:100:7)
at exports.decipherFormats (C:\Users\admin\Downloads\SelfRythm-main\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:\Users\admin\Downloads\SelfRythm-main\node_modules\ytdl-core\lib\info.js:401:17) {
resource: AudioResource {
playStream: Encoder {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
encoder: null,
_options: [Object],
_required: 3840,
_buffer: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
edges: [ [Object], [Object], [Object] ],
metadata: null,
volume: VolumeTransformer {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 5,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
_readInt: [Function (anonymous)],
_writeInt: [Function (anonymous)],
_bits: 16,
_bytes: 2,
_extremum: 32768,
volume: 0.06902969996027704,
_chunk: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
encoder: Encoder {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
encoder: null,
_options: [Object],
_required: 3840,
_buffer: null,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
audioPlayer: AudioPlayer {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_state: [Object],
subscribers: [Array],
behaviors: [Object],
debug: [Function (anonymous)],
[Symbol(kCapture)]: false
},
playbackDuration: 0,
started: false,
silencePaddingFrames: 5,
silenceRemaining: -1
}
}
[ 15/10/2023 | 22:51:52 ] Finished playing the music : The Chosen: Season One, Episodes 1 & 2
[ 15/10/2023 | 22:51:52 ] No songs left in queue

Let me know if anything else is needed thanks for any help in advance

@N4T4IJ0
Copy link

N4T4IJ0 commented Nov 16, 2023

Got this error too but nothing to do

@Techpro709
Copy link

Hey yall, i'll push a PR right now (migrated packages) and it's working.

@Techpro709
Copy link

image
image

@Techpro709
Copy link

If anyone still uses this you can use #63 to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants