Giter Club home page Giter Club logo

discord-music-24-7's Introduction

πŸ‘‹ Hi There!

discord discord

Hey, I'm Christian, a computer science student at the Universidad San Francisco de Quito with a passion for programming.

πŸš€ Some of My Projects

⚑ Recent Activity

  1. πŸš€ Published release v0.0.5 in greencoast-studios/eslint-config-greencoast
  2. πŸš€ Published release v1.0.1 in greencoast-studios/djs-extended-data-provider-level
  3. πŸš€ Published release v1.0.0 in greencoast-studios/djs-extended-data-provider-redis
  4. πŸš€ Published release v1.0.0 in greencoast-studios/djs-extended-data-provider-level
  5. πŸš€ Published release v3.0.1 in greencoast-studios/discord.js-extended

πŸ“Š Click to see my GitHub Stats


GitHub Stats
GitHub Top Languages

discord-music-24-7's People

Contributors

dalejv avatar dependabot[bot] avatar moonstar-x avatar zackradisic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-music-24-7's Issues

Bot skipping song that didn't end.

πŸ›

A clear and concise description of what the bug is.
The bot stops playing and gives an error, then skips song.

✏️ Steps to Reproduce

  1. Play the queue
  2. Wait
  3. It happens

πŸ˜• Expected Behavior

It skips to next song.

A description of what you expected to get (if applicable).
It should continue playing it as normal.

πŸ“œ Log

(1:50:50 PM) - [ERROR] -  Error: aborted
    at connResetException (node:internal/errors:692:14)
    at TLSSocket.socketCloseListener (node:_http_client:402:19)
    at TLSSocket.emit (node:events:539:35)
    at node:net:688:12
    at TCP.done (node:_tls_wrap:582:7) {
  code: 'ECONNRESET'
}

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • Node Version: v17.

It dosen't plaay music..

I've deployed the bot on heroku and have setup all the requirements such as Procfile which declares worker as npm start but I don't know why it is not playing music...I does connect to voice channel but don't play music :(

How do I stop it

Loving your bot so far, but I am a pretty beginner in these. I've started with npm start and works fine, how do I stop it should I want to?

Now playing.

hello sir! i'm new here to creating my own bot. so randomly i find this project and i'm so excited with this project.
And thank you very much.
so, i have a question. it is possible change the now playing from the status to channelmessage?
if dont mind, can you tell me how to do that?
so its okay if you dont wanna to anwser my question.

THANK YOU :D

Error

It keeps repeating that ffmpeg isnt installed idk how to fix it even tho i have it installed

Error happening when I start

πŸ˜• Question

When I use the start command, this error always pops up. Saw that someone had the same error, but when I tried the way that he fixed his, it still doesn't work. I'm running this on a raspberry pi 4.

❓ Additional Information

image

Multi-server support

⚑ Describe the New Feature

Add support for multiple servers, maybe a persistent data store is necessary to keep the connection channel per guild.

This also means new commands to set the playing channel.

Add a custom presence status message.

⚑ Describe the New Feature

A way to specify in the config a custom presence status message. It should support templates to aggregate:

  1. The name of the song currently played.
  2. The play/pause icon.
  3. The index of the current song being played.
  4. The max number of songs in the queue.

bot cant play anything

(7:01:22 PM) - [ERROR] - Error: input stream: Status code: 429

at StreamDispatcher.dispatcher.on.err (/app/src/app.js:74:14)

at StreamDispatcher.emit (events.js:194:15)

at streamError (/rbd/pnpm-volume/fe128fbf-e057-4865-9abc-dcd71a24cf28/node_modules/.github.com/discordjs/discord.js/ea9e1441905e67e2627a6f5e80a8d989d01376c5/node_modules/discord.js/src/client/voice/dispatcher/StreamDispatcher.js:88:14)

at PassThrough.StreamDispatcher.streams.input.on.err (/rbd/pnpm-volume/fe128fbf-e057-4865-9abc-dcd71a24cf28/node_modules/.github.com/discordjs/discord.js/ea9e1441905e67e2627a6f5e80a8d989d01376c5/node_modules/discord.js/src/client/voice/dispatcher/StreamDispatcher.js:94:67)

at PassThrough.emit (events.js:189:13)

at ytdl.getInfo (/rbd/pnpm-volume/fe128fbf-e057-4865-9abc-dcd71a24cf28/node_modules/.registry.npmjs.org/ytdl-core/0.29.7/node_modules/ytdl-core/lib/index.js:19:14)

at fn (/rbd/pnpm-volume/fe128fbf-e057-4865-9abc-dcd71a24cf28/node_modules/.registry.npmjs.org/ytdl-core/0.29.7/node_modules/ytdl-core/lib/info.js:370:25)

at exports.getBasicInfo (/rbd/pnpm-volume/fe128fbf-e057-4865-9abc-dcd71a24cf28/node_modules/.registry.npmjs.org/ytdl-core/0.29.7/node_modules/ytdl-core/lib/info.js:212:21)

at fn (/rbd/pnpm-volume/fe128fbf-e057-4865-9abc-dcd71a24cf28/node_modules/.registry.npmjs.org/ytdl-core/0.29.7/node_modules/ytdl-core/lib/info.js:370:25)

MinigetError: Status Code: 404 - YouTube

so, i come again for a new problem, i tried to fix it myself, but i didn't find de true problem

when i start the console first show this :
image
for a little time, then show this :
image
and finaly spamm the same error again and again :
image

i don't find the problem so i come ask for your help

edit :
and i forgot to say that the bot is actually connected to the voice channel, with a gren circle around his pdp, but i don't hear a sound

EPIPE Error

Hi, I added own youtube links to queue.txt
After run this bot its connected on the channel, but with EPIPE error. When I added back your deafult youtube links there, it worked without this error. What do i have to do to make it work? Thanks

Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:164:15)
at writeGeneric (node:internal/stream_base_commons:155:3)
at Socket._writeGeneric (node:net:795:11)
at Socket._write (node:net:807:8)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at PassThrough.ondata (node:internal/streams/readable:754:22)
at PassThrough.emit (node:events:390:28)
at PassThrough.Readable.read (node:internal/streams/readable:527:10) {
errno: -4047,
code: 'EPIPE',
syscall: 'write'

Skip songs

I need a command to skip songs. The only way I have gotten it to skip a song and that is to make the bot crash and wait for it to restart. Sometime it would play the same songs.

Crash when voice connection is lost.

πŸ› Describe the Bug

After having the bot run for 2 days on my server, it completely crashes

✏️ Steps to Reproduce

  1. Turn of pause music on empty server
  2. Run bot for multiple days
  3. See error...

πŸ˜• Expected Behavior

The bot should not be crashing, its a 24/7 bot. Its gives issues such as code: 'ERR_UNHANDLED_ERROR', Error: getaddrinfo ENOTFOUND sydney4015.discord.media, and type: 'error', message: 'getaddrinfo ENOTFOUND sydney4015.discord.media',

πŸ“œ Log

node:events:381
    throw err; // Unhandled 'error' event
    ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {
  target: WebSocket {
    _events: [Object: null prototype] {
      open: [Function],
      message: [Function],
      close: [Function],
      error: [Function]
    },
    _eventsCount: 4,
    _maxListeners: undefined,
    _binaryType: 'nodebuffer',
    _closeCode: 1006,
    _closeFrameReceived: false,
    _closeFrameSent: false,
    _closeMessage: '',
    _closeTimer: null,
    _extensions: {},
    _protocol: '',
    _readyState: 2,
    _receiver: null,
    _sender: null,
    _socket: null,
    _bufferedAmount: 0,
    _isServer: false,
    _redirects: 0,
    _url: 'wss://sydney4015.discord.media/?v=4&encoding=json',
    _req: null,
    [Symbol(kCapture)]: false
  },
  type: 'error',
  message: 'getaddrinfo ENOTFOUND sydney4015.discord.media',
  error: Error: getaddrinfo ENOTFOUND sydney4015.discord.media
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
    errno: -3008,
    code: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: 'sydney4015.discord.media'
  }
})
    at new NodeError (node:internal/errors:371:5)
    at VoiceConnection.emit (node:events:379:17)
    at VoiceWebSocket.<anonymous> (C:\Users\User\Desktop\DC bot\project\discord-music-24-7\node_modules\discord.js\src\client\voice\VoiceConnection.js:422:32)
    at VoiceWebSocket.emit (node:events:390:28)
    at VoiceWebSocket.onError (C:\Users\User\Desktop\DC bot\project\discord-music-24-7\node_modules\discord.js\src\client\voice\networking\VoiceWebSocket.js:160:10)
    at WebSocket.onError (C:\Users\User\Desktop\DC bot\project\discord-music-24-7\node_modules\ws\lib\event-target.js:140:16)
    at WebSocket.emit (node:events:390:28)
    at emitErrorAndClose (C:\Users\User\Desktop\DC bot\project\discord-music-24-7\node_modules\ws\lib\websocket.js:835:13)
    at ClientRequest.<anonymous> (C:\Users\User\Desktop\DC bot\project\discord-music-24-7\node_modules\ws\lib\websocket.js:697:5)
    at ClientRequest.emit (node:events:390:28) {
  code: 'ERR_UNHANDLED_ERROR',
  context: ErrorEvent {
    target: WebSocket {
      _events: [Object: null prototype] {
        open: [Function: onOpen] { _listener: [Function: bound onOpen] },
        message: [Function: onMessage] { _listener: [Function: bound onMessage] },
        close: [Function: onClose] { _listener: [Function: bound onClose] },
        error: [Function: onError] { _listener: [Function: bound onError] }
      },
      _eventsCount: 4,
      _maxListeners: undefined,
      _binaryType: 'nodebuffer',
      _closeCode: 1006,
      _closeFrameReceived: false,
      _closeFrameSent: false,
      _closeMessage: '',
      _closeTimer: null,
      _protocol: '',
      _readyState: 2,
      _receiver: null,
      _sender: null,
      _socket: null,
      _bufferedAmount: 0,
      _isServer: false,
      _redirects: 0,
      _url: 'wss://sydney4015.discord.media/?v=4&encoding=json',
      _req: null,
      [Symbol(kCapture)]: false
    },
    type: 'error',
    message: 'getaddrinfo ENOTFOUND sydney4015.discord.media',
    error: Error: getaddrinfo ENOTFOUND sydney4015.discord.media
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
      errno: -3008,
      code: 'ENOTFOUND',
      syscall: 'getaddrinfo',
      hostname: 'sydney4015.discord.media'
    }
  }
}

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • v16.13.2

Update to Djs.13/Djs.14

⚑ Describe the New Feature

The bot has no Slash commands currently which are technically the way to go now for bots. This means the bot needs to use the privileged message content intent for now.

I'm afraid I can only start working on this until January 2023 because of college and work.

Fear not, this project is not abandoned but it is on hold until then.

Help assistance needed....

Is there a possible way for me to make the bot not pause music ?

If yes can you please guide me......thanks!
what should I edit in the code to make this possible.

Stream will randomly stop working after a long time.

πŸ› Describe the Bug

After something like 2-3 days, the stream may randomly stop working because it seems that the websocket connection is closed without notice.

Restarting the bot will fix this issue.

✏️ Steps to Reproduce

It happens randomly which makes this really hard to debug. :/

πŸ˜• Expected Behavior

The music stream should work forever.

πŸ“œ Log

events.js:305


    throw err; // Unhandled 'error' event


    ^




Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {


  target: WebSocket {


    _events: [Object: null prototype] {


      open: [Function],


      message: [Function],


      close: [Function],


      error: [Function]


    },


    _eventsCount: 4,


    _maxListeners: undefined,


    _binaryType: 'nodebuffer',


    _closeCode: 1006,


    _closeFrameReceived: false,


    _closeFrameSent: false,


    _closeMessage: '',


    _closeTimer: null,


    _extensions: {},


    _protocol: '',


    _readyState: 2,


    _receiver: null,


    _sender: null,


    _socket: null,


    _bufferedAmount: 0,


    _isServer: false,


    _redirects: 0,


    _url: 'wss://santiago3716.discord.media/?v=4&encoding=json',


    _req: ClientRequest {


      _events: [Object: null prototype],


      _eventsCount: 4,


      _maxListeners: undefined,


      outputData: [],


      outputSize: 0,


      writable: true,


      _last: true,


      chunkedEncoding: false,


      shouldKeepAlive: true,


      _defaultKeepAlive: true,


      useChunkedEncodingByDefault: false,


      sendDate: false,


      _removedConnection: false,


      _removedContLen: false,


      _removedTE: false,


      _contentLength: 0,


      _hasBody: true,


      _trailer: '',


      finished: true,


      _headerSent: true,


      socket: [TLSSocket],


      connection: [TLSSocket],


      _header: 'GET /?v=4&encoding=json HTTP/1.1\r\n' +


        'Sec-WebSocket-Version: 13\r\n' +


        'Sec-WebSocket-Key: 3nWEHNgLf/4ol2wIoJ/XAQ==\r\n' +


        'Connection: Upgrade\r\n' +


        'Upgrade: websocket\r\n' +


        'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +


        'Host: santiago3716.discord.media\r\n' +


        '\r\n',


      _keepAliveTimeout: 0,


      _onPendingData: [Function: noopPendingOutput],


      agent: undefined,


      socketPath: undefined,


      method: 'GET',


      insecureHTTPParser: undefined,


      path: '/?v=4&encoding=json',


      _ended: false,


      res: null,


      aborted: true,


      timeoutCb: null,


      upgradeOrConnect: false,


      parser: [HTTPParser],


      maxHeadersCount: null,


      reusedSocket: false,


      host: 'santiago3716.discord.media',


      protocol: 'https:',


      [Symbol(kCapture)]: false,


      [Symbol(kNeedDrain)]: false,


      [Symbol(corked)]: 0,


      [Symbol(kOutHeaders)]: [Object: null prototype]


    },


    [Symbol(kCapture)]: false


  },


  type: 'error',


  message: 'WebSocket was closed before the connection was established',


  error: Error: WebSocket was closed before the connection was established


      at WebSocket.close (/opt/app/node_modules/ws/lib/websocket.js:269:14)


      at VoiceWebSocket.reset (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:53:60)


      at VoiceWebSocket.shutdown (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:44:10)


      at VoiceConnection.connect (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:412:42)


      at VoiceConnection.reconnect (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:344:10)


      at VoiceConnection.setTokenAndEndpoint (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:234:12)


      at ClientVoiceManager.onVoiceServer (/opt/app/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:47:32)


      at Object.module.exports [as VOICE_SERVER_UPDATE] (/opt/app/node_modules/discord.js/src/client/websocket/handlers/VOICE_SERVER_UPDATE.js:5:16)


      at WebSocketManager.handlePacket (/opt/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)


      at WebSocketShard.onPacket (/opt/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)


})


    at VoiceConnection.emit (events.js:303:17)


    at VoiceWebSocket.<anonymous> (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:422:32)


    at VoiceWebSocket.emit (events.js:314:20)


    at VoiceWebSocket.onError (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:160:10)


    at WebSocket.onError (/opt/app/node_modules/ws/lib/event-target.js:140:16)


    at WebSocket.emit (events.js:314:20)


    at abortHandshake (/opt/app/node_modules/ws/lib/websocket.js:868:15)


    at WebSocket.close (/opt/app/node_modules/ws/lib/websocket.js:269:14)


    at VoiceWebSocket.reset (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:53:60)


    at VoiceWebSocket.shutdown (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:44:10) {


  code: 'ERR_UNHANDLED_ERROR',


  context: ErrorEvent {


    target: WebSocket {


      _events: [Object: null prototype] {


        open: [Function: onOpen] { _listener: [Function: bound onOpen] },


        message: [Function: onMessage] { _listener: [Function: bound onMessage] },


        close: [Function: onClose] { _listener: [Function: bound onClose] },


        error: [Function: onError] { _listener: [Function: bound onError] }


      },


      _eventsCount: 4,


      _maxListeners: undefined,


      _binaryType: 'nodebuffer',


      _closeCode: 1006,


      _closeFrameReceived: false,


      _closeFrameSent: false,


      _closeMessage: '',


      _closeTimer: null,


      _extensions: {},


      _protocol: '',


      _readyState: 2,


      _receiver: null,


      _sender: null,


      _socket: null,


      _bufferedAmount: 0,


      _isServer: false,


      _redirects: 0,


      _url: 'wss://santiago3716.discord.media/?v=4&encoding=json',


      _req: ClientRequest {


        _events: [Object: null prototype] {


          error: [Function],


          response: [Function],


          upgrade: [Function],


          abort: [Function: bound onceWrapper] {


            listener: [Function: bound emitClose]


          }


        },


        _eventsCount: 4,


        _maxListeners: undefined,


        outputData: [],


        outputSize: 0,


        writable: true,


        _last: true,


        chunkedEncoding: false,


        shouldKeepAlive: true,


        _defaultKeepAlive: true,


        useChunkedEncodingByDefault: false,


        sendDate: false,


        _removedConnection: false,


        _removedContLen: false,


        _removedTE: false,


        _contentLength: 0,


        _hasBody: true,


        _trailer: '',


        finished: true,


        _headerSent: true,


        socket: TLSSocket {


          _tlsOptions: {


            allowHalfOpen: undefined,


            pipe: false,


            secureContext: [SecureContext],


            isServer: false,


            requestCert: true,


            rejectUnauthorized: true,


            session: undefined,


            ALPNProtocols: undefined,


            requestOCSP: undefined,


            enableTrace: undefined,


            pskCallback: undefined

οΏ½
          },


          _secureEstablished: true,


          _securePending: false,


          _newSessionPending: false,


          _controlReleased: true,


          secureConnecting: false,


          _SNICallback: null,


          servername: 'santiago3716.discord.media',


          alpnProtocol: false,


          authorized: true,


          authorizationError: null,


          encrypted: true,


          _events: [Object: null prototype] {


            close: [Array],


            end: [Array],


            newListener: [Array],


            secure: [Function: onConnectSecure],


            error: [Function: socketErrorListener],


            data: [Function: socketOnData],


            drain: [Function: ondrain]

οΏ½
          },


          _eventsCount: 7,


          connecting: false,


          _hadError: false,


          _parent: null,


          _host: 'santiago3716.discord.media',


          _readableState: ReadableState {


            objectMode: false,


            highWaterMark: 16384,


            buffer: [BufferList],


            length: 0,


            pipes: null,


            pipesCount: 0,


            flowing: true,


            ended: false,


            endEmitted: false,


            reading: true,


            sync: false,


            needReadable: true,


            emittedReadable: false,


            readableListening: false,


            resumeScheduled: false,


            emitClose: false,


            autoDestroy: false,


            destroyed: true,


            defaultEncoding: 'utf8',


            awaitDrainWriters: null,


            multiAwaitDrain: false,


            readingMore: false,


            decoder: null,


            encoding: null,


            [Symbol(kPaused)]: false

οΏ½
          },


          readable: false,


          _maxListeners: undefined,


          _writableState: WritableState {


            objectMode: false,


            highWaterMark: 16384,


            finalCalled: false,


            needDrain: false,


            ending: false,


            ended: false,


            finished: false,


            destroyed: true,


            decodeStrings: false,


            defaultEncoding: 'utf8',


            length: 0,


            writing: false,


            corked: 0,


            sync: false,


            bufferProcessing: false,


            onwrite: [Function: bound onwrite],


            writecb: null,


            writelen: 0,


            afterWriteTickInfo: null,


            bufferedRequest: null,


            lastBufferedRequest: null,


            pendingcb: 0,


            prefinished: false,


            errorEmitted: false,


            emitClose: false,


            autoDestroy: false,


            bufferedRequestCount: 0,


            corkedRequestsFree: [Object]

οΏ½
          },


          writable: false,


          allowHalfOpen: false,


          _sockname: null,


          _pendingData: null,


          _pendingEncoding: '',


          server: undefined,


          _server: null,


          ssl: null,


          _requestCert: true,


          _rejectUnauthorized: true,


          parser: HTTPParser {


            '0': [Function: parserOnHeaders],


            '1': [Function: parserOnHeadersComplete],


            '2': [Function: parserOnBody],


            '3': [Function: parserOnMessageComplete],


            '4': null,


            '5': null,


            _headers: [],


            _url: '',


            socket: [Circular],


            incoming: null,


            outgoing: [Circular],


            maxHeaderPairs: 2000,


            _consumed: false,


            onIncoming: [Function: parserOnIncomingClient],


            [Symbol(resource_symbol)]: [HTTPClientAsyncResource]

οΏ½
          },


          _httpMessage: [Circular],


          [Symbol(res)]: TLSWrap {


            _parent: [TCP],


            _parentWrap: undefined,


            _secureContext: [SecureContext],


            reading: true,


            onkeylog: [Function: onkeylog],


            onhandshakestart: [Function: noop],


            onhandshakedone: [Function],


            onocspresponse: [Function: onocspresponse],


            onnewsession: [Function: onnewsessionclient],


            onerror: [Function: onerror],


            [Symbol(owner_symbol)]: [Circular]

οΏ½
          },


          [Symbol(verified)]: true,


          [Symbol(pendingSession)]: null,


          [Symbol(asyncId)]: 4543243,


          [Symbol(kHandle)]: null,


          [Symbol(kSetNoDelay)]: false,


          [Symbol(lastWriteQueueSize)]: 0,


          [Symbol(timeout)]: null,


          [Symbol(kBuffer)]: null,


          [Symbol(kBufferCb)]: null,


          [Symbol(kBufferGen)]: null,


          [Symbol(kCapture)]: false,


          [Symbol(kBytesRead)]: 0,


          [Symbol(kBytesWritten)]: 253,


          [Symbol(connect-options)]: {


            rejectUnauthorized: true,


            ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',


            checkServerIdentity: [Function: checkServerIdentity],


            minDHSize: 1024,


            protocolVersion: 13,


            maxPayload: 104857600,


            perMessageDeflate: true,


            followRedirects: false,


            maxRedirects: 10,


            createConnection: [Function: tlsConnect],


            socketPath: undefined,


            hostname: undefined,


            protocol: undefined,


            timeout: undefined,


            method: undefined,


            host: 'santiago3716.discord.media',


            path: undefined,


            port: 443,


            defaultPort: 443,


            headers: [Object],


            _defaultAgent: [Agent],


            servername: 'santiago3716.discord.media',


            singleUse: true


          }


        },


        connection: TLSSocket {


          _tlsOptions: {


            allowHalfOpen: undefined,


            pipe: false,


            secureContext: [SecureContext],


            isServer: false,


            requestCert: true,


            rejectUnauthorized: true,


            session: undefined,


            ALPNProtocols: undefined,


            requestOCSP: undefined,


            enableTrace: undefined,


            pskCallback: undefined

οΏ½
          },


          _secureEstablished: true,


          _securePending: false,


          _newSessionPending: false,


          _controlReleased: true,


          secureConnecting: false,


          _SNICallback: null,


          servername: 'santiago3716.discord.media',


          alpnProtocol: false,


          authorized: true,


          authorizationError: null,


          encrypted: true,


          _events: [Object: null prototype] {


            close: [Array],


            end: [Array],


            newListener: [Array],


            secure: [Function: onConnectSecure],


            error: [Function: socketErrorListener],


            data: [Function: socketOnData],


            drain: [Function: ondrain]

οΏ½
          },


          _eventsCount: 7,


          connecting: false,


          _hadError: false,


          _parent: null,


          _host: 'santiago3716.discord.media',


          _readableState: ReadableState {


            objectMode: false,


            highWaterMark: 16384,


            buffer: [BufferList],


            length: 0,


            pipes: null,


            pipesCount: 0,


            flowing: true,


            ended: false,


            endEmitted: false,


            reading: true,


            sync: false,


            needReadable: true,


            emittedReadable: false,


            readableListening: false,


            resumeScheduled: false,


            emitClose: false,


            autoDestroy: false,


            destroyed: true,


            defaultEncoding: 'utf8',


            awaitDrainWriters: null,


            multiAwaitDrain: false,


            readingMore: false,


            decoder: null,


            encoding: null,


            [Symbol(kPaused)]: false

οΏ½
          },


          readable: false,


          _maxListeners: undefined,


          _writableState: WritableState {


            objectMode: false,


            highWaterMark: 16384,


            finalCalled: false,


            needDrain: false,


            ending: false,


            ended: false,


            finished: false,


            destroyed: true,


            decodeStrings: false,


            defaultEncoding: 'utf8',


            length: 0,


            writing: false,


            corked: 0,


            sync: false,


            bufferProcessing: false,


            onwrite: [Function: bound onwrite],


            writecb: null,


            writelen: 0,


            afterWriteTickInfo: null,


            bufferedRequest: null,


            lastBufferedRequest: null,


            pendingcb: 0,


            prefinished: false,


            errorEmitted: false,


            emitClose: false,


            autoDestroy: false,


            bufferedRequestCount: 0,


            corkedRequestsFree: [Object]

οΏ½
          },


          writable: false,


          allowHalfOpen: false,


          _sockname: null,


          _pendingData: null,


          _pendingEncoding: '',


          server: undefined,


          _server: null,


          ssl: null,


          _requestCert: true,


          _rejectUnauthorized: true,


          parser: HTTPParser {


            '0': [Function: parserOnHeaders],


            '1': [Function: parserOnHeadersComplete],


            '2': [Function: parserOnBody],


            '3': [Function: parserOnMessageComplete],


            '4': null,


            '5': null,


            _headers: [],


            _url: '',


            socket: [Circular],


            incoming: null,


            outgoing: [Circular],


            maxHeaderPairs: 2000,


            _consumed: false,


            onIncoming: [Function: parserOnIncomingClient],


            [Symbol(resource_symbol)]: [HTTPClientAsyncResource]

οΏ½
          },


          _httpMessage: [Circular],


          [Symbol(res)]: TLSWrap {


            _parent: [TCP],


            _parentWrap: undefined,


            _secureContext: [SecureContext],


            reading: true,


            onkeylog: [Function: onkeylog],


            onhandshakestart: [Function: noop],


            onhandshakedone: [Function],


            onocspresponse: [Function: onocspresponse],


            onnewsession: [Function: onnewsessionclient],


            onerror: [Function: onerror],


            [Symbol(owner_symbol)]: [Circular]

οΏ½
          },


          [Symbol(verified)]: true,


          [Symbol(pendingSession)]: null,


          [Symbol(asyncId)]: 4543243,


          [Symbol(kHandle)]: null,


          [Symbol(kSetNoDelay)]: false,


          [Symbol(lastWriteQueueSize)]: 0,


          [Symbol(timeout)]: null,


          [Symbol(kBuffer)]: null,


          [Symbol(kBufferCb)]: null,


          [Symbol(kBufferGen)]: null,


          [Symbol(kCapture)]: false,


          [Symbol(kBytesRead)]: 0,


          [Symbol(kBytesWritten)]: 253,


          [Symbol(connect-options)]: {


            rejectUnauthorized: true,


            ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',


            checkServerIdentity: [Function: checkServerIdentity],


            minDHSize: 1024,


            protocolVersion: 13,


            maxPayload: 104857600,


            perMessageDeflate: true,


            followRedirects: false,


            maxRedirects: 10,


            createConnection: [Function: tlsConnect],


            socketPath: undefined,


            hostname: undefined,


            protocol: undefined,


            timeout: undefined,


            method: undefined,


            host: 'santiago3716.discord.media',


            path: undefined,


            port: 443,


            defaultPort: 443,


            headers: [Object],


            _defaultAgent: [Agent],


            servername: 'santiago3716.discord.media',


            singleUse: true


          }


        },


        _header: 'GET /?v=4&encoding=json HTTP/1.1\r\n' +


          'Sec-WebSocket-Version: 13\r\n' +


          'Sec-WebSocket-Key: 3nWEHNgLf/4ol2wIoJ/XAQ==\r\n' +


          'Connection: Upgrade\r\n' +


          'Upgrade: websocket\r\n' +


          'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +


          'Host: santiago3716.discord.media\r\n' +


          '\r\n',


        _keepAliveTimeout: 0,


        _onPendingData: [Function: noopPendingOutput],


        agent: undefined,


        socketPath: undefined,


        method: 'GET',


        insecureHTTPParser: undefined,


        path: '/?v=4&encoding=json',


        _ended: false,


        res: null,


        aborted: true,


        timeoutCb: null,


        upgradeOrConnect: false,


        parser: HTTPParser {


          '0': [Function: parserOnHeaders],


          '1': [Function: parserOnHeadersComplete],


          '2': [Function: parserOnBody],


          '3': [Function: parserOnMessageComplete],


          '4': null,


          '5': null,


          _headers: [],


          _url: '',


          socket: TLSSocket {


            _tlsOptions: [Object],


            _secureEstablished: true,


            _securePending: false,


            _newSessionPending: false,


            _controlReleased: true,


            secureConnecting: false,


            _SNICallback: null,


            servername: 'santiago3716.discord.media',


            alpnProtocol: false,


            authorized: true,


            authorizationError: null,


            encrypted: true,


            _events: [Object: null prototype],


            _eventsCount: 7,


            connecting: false,


            _hadError: false,


            _parent: null,


            _host: 'santiago3716.discord.media',


            _readableState: [ReadableState],


            readable: false,


            _maxListeners: undefined,


            _writableState: [WritableState],


            writable: false,


            allowHalfOpen: false,


            _sockname: null,


            _pendingData: null,


            _pendingEncoding: '',


            server: undefined,


            _server: null,


            ssl: null,


            _requestCert: true,


            _rejectUnauthorized: true,


            parser: [Circular],


            _httpMessage: [Circular],


            [Symbol(res)]: [TLSWrap],


            [Symbol(verified)]: true,


            [Symbol(pendingSession)]: null,


            [Symbol(asyncId)]: 4543243,


            [Symbol(kHandle)]: null,


            [Symbol(kSetNoDelay)]: false,


            [Symbol(lastWriteQueueSize)]: 0,


            [Symbol(timeout)]: null,


            [Symbol(kBuffer)]: null,


            [Symbol(kBufferCb)]: null,


            [Symbol(kBufferGen)]: null,


            [Symbol(kCapture)]: false,


            [Symbol(kBytesRead)]: 0,


            [Symbol(kBytesWritten)]: 253,


            [Symbol(connect-options)]: [Object]

οΏ½
          },


          incoming: null,


          outgoing: [Circular],


          maxHeaderPairs: 2000,


          _consumed: false,


          onIncoming: [Function: parserOnIncomingClient],


          [Symbol(resource_symbol)]: HTTPClientAsyncResource {


            type: 'HTTPINCOMINGMESSAGE',


            req: [Circular]


          }


        },


        maxHeadersCount: null,


        reusedSocket: false,


        host: 'santiago3716.discord.media',


        protocol: 'https:',


        [Symbol(kCapture)]: false,


        [Symbol(kNeedDrain)]: false,


        [Symbol(corked)]: 0,


        [Symbol(kOutHeaders)]: [Object: null prototype] {


          'sec-websocket-version': [ 'Sec-WebSocket-Version', 13 ],


          'sec-websocket-key': [ 'Sec-WebSocket-Key', 'SNIPPED' ],


          connection: [ 'Connection', 'Upgrade' ],


          upgrade: [ 'Upgrade', 'websocket' ],


          'sec-websocket-extensions': [


            'Sec-WebSocket-Extensions',


            'permessage-deflate; client_max_window_bits'

οΏ½
          ],


          host: [ 'Host', 'santiago3716.discord.media' ]

οΏ½


}


      },


      [Symbol(kCapture)]: false


    },


    type: 'error',


    message: 'WebSocket was closed before the connection was established',


    error: Error: WebSocket was closed before the connection was established


        at WebSocket.close (/opt/app/node_modules/ws/lib/websocket.js:269:14)


        at VoiceWebSocket.reset (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:53:60)


        at VoiceWebSocket.shutdown (/opt/app/node_modules/discord.js/src/client/voice/networking/VoiceWebSocket.js:44:10)


        at VoiceConnection.connect (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:412:42)


        at VoiceConnection.reconnect (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:344:10)


        at VoiceConnection.setTokenAndEndpoint (/opt/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:234:12)


        at ClientVoiceManager.onVoiceServer (/opt/app/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:47:32)


        at Object.module.exports [as VOICE_SERVER_UPDATE] (/opt/app/node_modules/discord.js/src/client/websocket/handlers/VOICE_SERVER_UPDATE.js:5:16)


        at WebSocketManager.handlePacket (/opt/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)


        at WebSocketShard.onPacket (/opt/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)


  }


}


npm ERR! code ELIFECYCLE


npm ERR! errno 1


npm ERR! [email protected] start: `node ./src/app.js`


npm ERR! Exit status 1

οΏ½


 


npm ERR! Failed at the [email protected] start script.


npm ERR! This is probably not a problem with npm. There is likely additional logging output above.




npm ERR! A complete log of this run can be found in:


npm ERR!     /root/.npm/_logs/2021-09-08T19_24_42_445Z-debug.log

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • Node Version: 12.20.0

Error on Heruko

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Could u help me to solve this error?
Tks.

Music does not resume after it has been paused for a long time.

hello there, sorry for bothering you.
i found an issue, when the bot pausing music for 2 hours and then when someone is joining to the voice chat, the bot wont resuming the playing music until i restart the dyno from heroku.
do you have any idea how to fix it?

image
image
np: sorry if my english not so good, i hope you understand what i say xD

add stage connectivity please

πŸ› Describe the Bug

A clear and concise description of what the bug is.

✏️ Steps to Reproduce

  1. Go to '...'
  2. Type '...'
  3. See error...

πŸ˜• Expected Behavior

A description of what you expected to get (if applicable).

πŸ“œ Log

Paste a relevant portion of the console log here.

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • Node Version: Version of the node runtime.

- [FATAL] - Error [VOICE_CONNECTION_TIMEOUT]

πŸ› Describe the Bug

When starting the bot after setting up the config it launches just fine but after 15 seconds it crashes do to not being able to establish a voice connection. In discord it connects to the voice chanel just fine.

✏️ Steps to Reproduce

  1. Go to '/discord-music-24-7'
  2. Type 'npm start'
  3. See error...

πŸ˜• Expected Behavior

it should behave like expected since I haven't done any tinkering with the code yet.

πŸ“œ Log

osprey@gameserver1:~/Documents/discord-music-24-7$ npm start

> [email protected] start
> node ./src/app.js

(12:32:38 AM) - [INFO] -  Registered Miscellaneous Commands (id: misc) command group.
(12:32:38 AM) - [INFO] -  Registered Player Commands (id: player) command group.
(12:32:38 AM) - [INFO] -  Registered help in Miscellaneous Commands.
(12:32:38 AM) - [INFO] -  Registered skip in Player Commands.
(12:32:39 AM) - [INFO] -  Refresh interval has been disabled.
(12:32:39 AM) - [INFO] -  Connected to Discord! - Ready.
(12:32:39 AM) - [INFO] -  Presence updated to: β—Ό Nothing to play
(12:32:39 AM) - [INFO] -  Joined Streaming in Music streaming on radio.
(12:32:39 AM) - [INFO] -  User Music player has joined Streaming.
(12:32:54 AM) - [FATAL] -  Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (/home/osprey/Documents/discord-music-24-7/node_modules/discord.js/src/client/voice/VoiceConnection.js:303:26)
    at /home/osprey/Documents/discord-music-24-7/node_modules/discord.js/src/client/voice/VoiceConnection.js:324:61
    at Timeout.<anonymous> (/home/osprey/Documents/discord-music-24-7/node_modules/discord.js/src/client/BaseClient.js:83:7)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  [Symbol(code)]: 'VOICE_CONNECTION_TIMEOUT'
}

πŸ“· Screenshots

Screenshot (40)

❓ Other Information

  • Node Version: v20.2.0
  • The displayed / commands in the uper middle are from another bot that I used earlier.

I received this error when starting the Bot on Glitch.

(3:48:34 PM) - [FATAL] - VoiceChannelError: Something went wrong when trying to look for the channel I was supposed to join.
at Player.initialize (/app/src/classes/Player.js:84:13)
at processTicksAndRejections (internal/process/task_queues.js:88:5) {
name: 'VoiceChannelError'
}

Add bug connectivity please

⚑ Describe the New Feature

A clear and concise description of what the new feature is.

✏️ Functionality

Describe the functionality of the new feature as a steps list (for easier understanding).

  1. Go to '...'
  2. Type '...'
  3. See error...

❓ Additional Information

If applicable, you can add anything else here.

Repl.it supported

πŸ› Describe the Bug

FFmpeg on repl.it is supported. FFmpeg is not supported, but ffmpeg-static is alternatives of ffmpeg.

A clear and concise description of what the bug is.

✏️ Steps to Reproduce

  1. Go to '...'
  2. Type '...'
  3. See error...

πŸ˜• Expected Behavior

A description of what you expected to get (if applicable).

πŸ“œ Log

Paste a relevant portion of the console log here.

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • Node Version: Version of the node runtime.

error (avconv missing file)

when i type "npm start" in my cmd the bot connect to the channel but plays nothing, and the cmd report non-stop that there's a missing file, the files is "avconv" what should be in the "ffmpeg" folder but there is no such file so i don't know what to do, if someone could help me πŸ€·β€β™‚οΈ

here a screen of the error :
image

thank you for your help, have a nice day and please excuse my english, i'm french

The bot randomly stops playing when using Docker

πŸ› Describe the Bug

I have started running this bot on Docker and I found that sometimes it just stops playing completely. This time it happened again and simply said the bot has excited with code 0. As if the bot finished doing what it needed to do. It did not restart itself which it should on Docker

✏️ Steps to Reproduce

  1. Run bot on Docker
  2. Wait a while
  3. Playback stops and does not restart

πŸ˜• Expected Behavior

A 24/7 bot that restarts when crashes

πŸ“œ Log

'dicord-music-bot-24-7 excited with code 0'

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • Node Version: Version of the node runtime.

Error input Stream

[ERROR] -  Error: input stream: Unable to retrieve video metadata                                                                            
   at getJSONWatchPage (/home/pi0/discord-music-24-7/node_modules/ytdl-core/lib/info.js:184:11)                                                          
   at runMicrotasks (<anonymous>)
   at processTicksAndRejections (internal/process/task_queues.js:97:5)
   at async exports.getBasicInfo (/home/pi0/discord-music-24-7/node_modules/ytdl-core/lib/info.js:34:14)                                                 
   at async Map.getOrSet (/home/pi0/discord-music-24-7/node_modules/ytdl-core/lib/cache.js:24:19)                                                        
   at async exports.getInfo (/home/pi0/discord-music-24-7/node_modules/ytdl-core/lib/info.js:252:14)                                                     
   at async Map.getOrSet (/home/pi0/discord-music-24-7/node_modules/ytdl-core/lib/cache.js:24:19)                                  

i am having this issue, i do not know why, is the first time that i try to host/run a discord bot so i do know nothing about.

This Error son't stop apering.

_http_outgoing.js:461
throw new ERR_INVALID_CHAR('header content', name);
^

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Cookie"]
at ClientRequest.setHeader (_http_outgoing.js:470:3)
at new ClientRequest (_http_client.js:212:14)
at Object.request (https.js:305:10)
at doDownload (/rbd/pnpm-volume/0ec18bbe-3f27-403e-9f74-06408f6b3793/node_modules/.registry.npmjs.org/miniget/4.2.2/node_modules/miniget/dist/index.js:170:33)
at processTicksAndRejections (internal/process/task_queues.js:81:9)

Add support for intermission audios between X amount of songs played.

⚑ Describe the New Feature

This would be to make the music bot feel a bit more like a radio.

Basically add the ability to play a certain audio clip every X songs played.

The audios could be audio files or URLs, so something like a separate Queue should be added to the Player for these audios.

New Error

_http_outgoing.js:461
throw new ERR_INVALID_CHAR('header content', name);
^

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Cookie"]
at ClientRequest.setHeader (_http_outgoing.js:470:3)
at new ClientRequest (_http_client.js:212:14)
at Object.request (https.js:305:10)
at doDownload (/rbd/pnpm-volume/0ec18bbe-3f27-403e-9f74-06408f6b3793/node_modules/.registry.npmjs.org/miniget/4.2.2/node_modules/miniget/dist/index.js:170:33)
at processTicksAndRejections (internal/process/task_queues.js:81:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./src/app.js
npm ERR! Exit status 1

NΓ£o tocar mΓΊsica

πŸ› Describe the Bug

A clear and concise description of what the bug is.

✏️ Steps to Reproduce

  1. Go to '...'
  2. Type '...'
  3. See error...

πŸ˜• Expected Behavior

A description of what you expected to get (if applicable).

πŸ“œ Log

Paste a relevant portion of the console log here.

πŸ“· Screenshots

Paste a screenshot of the bug (if applicable).

❓ Other Information

  • Node Version: Version of the node runtime.
    Γ‘ toca mΓΊsica

The bot, sometimes, does not resume playback once I have joined the server again.

πŸ› Describe the Bug

Most of the time, when I join the voice channel that has the bot sitting alone it in, the playback does not resume. I have to leave again and join for it to start playing. Yet, in the console it states that the presence has bene updated and the music has been resumed after I join. Very rarely will it properly resume playback once I join

✏️ Steps to Reproduce

1 - Get everyone to leave the voice channel
2 - Get one person to join back in
3 - The console will say music has been resumed and presence updated yet no music will be playing

πŸ˜• Expected Behavior

In terms of the expected behavior, the bot should resume playback and actually play the song.

πŸ“œ Log

(12:51:08 PM) - [INFO] -  User LlamaLoops has joined 🎧᲼24/7 lofi radio (LL).
(12:51:08 PM) - [INFO] -  Music has been resumed.
(12:51:08 PM) - [INFO] -  Presence updated to: β–Ί nostalgic disney songs but its lofi extended version (2 hours)

πŸ“· Screenshots

N/A

❓ Other Information

  • Node Version: Version of the node runtime.
    v16.13.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.