Skip to content

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

@xbxyi

Description

@xbxyi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions