TheDiscorders / SelfRythm

A music Discord bot that works as a selfbot
MIT License
50 stars 74 forks source link

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

Open xbxyi opened 11 months ago

xbxyi commented 11 months ago

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(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 commented 11 months ago

Got this error too but nothing to do

Techpro709 commented 1 week ago

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

Techpro709 commented 1 week ago

image image

Techpro709 commented 1 week ago

If anyone still uses this you can use https://github.com/TheDiscorders/SelfRythm/pull/63 to fix it.