moonstar-x / discord-music-24-7 Goto Github PK
View Code? Open in Web Editor NEWA 24/7 music bot for Discord that pauses when nobody is listening.
License: MIT License
A 24/7 music bot for Discord that pauses when nobody is listening.
License: MIT License
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.
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?
np: sorry if my english not so good, i hope you understand what i say xD
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.
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
A clear and concise description of what the bug is.
The bot stops playing and gives an error, then skips song.
- Play the queue
- Wait
- It happens
It skips to next song.
A description of what you expected to get (if applicable).
It should continue playing it as normal.
(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'
}
Paste a screenshot of the bug (if applicable).
v17.
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 :(
A description of what you need help with.
what happened?
I do not know what to do now
2021-05-28T11_54_33_373Z-debug.log
Anything additional goes here (screenshots, logs, etc...)
A clear and concise description of what the bug is.
- Go to '...'
- Type '...'
- See error...
A description of what you expected to get (if applicable).
Paste a relevant portion of the console log here.
Paste a screenshot of the bug (if applicable).
Version of the node runtime.
After having the bot run for 2 days on my server, it completely crashes
- Turn of pause music on empty server
- Run bot for multiple days
- See error...
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
, andtype: 'error', message: 'getaddrinfo ENOTFOUND sydney4015.discord.media'
,
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'
}
}
}
Paste a screenshot of the bug (if applicable).
(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)
It says undefined
instead.
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 π€·ββοΈ
thank you for your help, have a nice day and please excuse my english, i'm french
A clear and concise description of what the new feature is.
Describe the functionality of the new feature as a steps list (for easier understanding).
- Go to '...'
- Type '...'
- See error...
If applicable, you can add anything else here.
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.
- Go to '/discord-music-24-7'
- Type 'npm start'
- See error...
it should behave like expected since I haven't done any tinkering with the code yet.
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'
}
v20.2.0
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?
A clear and concise description of what the bug is.
- Go to '...'
- Type '...'
- See error...
A description of what you expected to get (if applicable).
Paste a relevant portion of the console log here.
Paste a screenshot of the bug (if applicable).
Version of the node runtime.
_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)
Originally posted by ImSIFO June 6, 2022
Add a command To add a local song to local folder from discord without need to go and add it from the code
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.
- Go to '...'
- Type '...'
- See error...
A description of what you expected to get (if applicable).
Paste a relevant portion of the console log here.
Paste a screenshot of the bug (if applicable).
Version of the node runtime.
(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'
}
_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
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
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
In terms of the expected behavior, the bot should resume playback and actually play the song.
(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)
N/A
Version of the node runtime.
Like your bot is very good I mean literally appreciable but I wanna know about YouTube cookie removing thing??
Bump the MIT LICENSE
to 2021.
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.
It happens randomly which makes this really hard to debug. :/
The music stream should work forever.
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
Paste a screenshot of the bug (if applicable).
12.20.0
Add support for YouTube playlists with URLs specified in the queue.txt
file.
I'm getting error installing node modules....
The bot will crash when updateChannel
in Player
is called when the bot is disconnected from a channel, either by right clicking it then selecting disconnect
or for whatever other reason.
Hay there,
is there a way to add more playable Domains like these: "http://stream.laut.fm/foxco-radio"?
have a nice day!
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.
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 :
for a little time, then show this :
and finaly spamm the same error again and again :
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
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
- Run bot on Docker
- Wait a while
- Playback stops and does not restart
A 24/7 bot that restarts when crashes
'dicord-music-bot-24-7 excited with code 0'
Paste a screenshot of the bug (if applicable).
Version of the node runtime.
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.
Hi, bro i wanted to ask if your code "discord-music-24/7" if you can make it compatible on replit in 24/7 like tts bot ...
And if you can put the ability to play youtube playlists??
A way to specify in the config a custom presence status message. It should support templates to aggregate:
I tried to connect the bot to a stage channel with the channel ID but it seems like it doesn't want to
It keeps repeating that ffmpeg isnt installed idk how to fix it even tho i have it installed
as the title say , the bot only play the first music then stop even there's ppl in vc
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.
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'
Hello, I'm trying to install the bot on Ubuntu could someone help me?
Regards,
Ryan
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.
[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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.