Skip to content

Instantly share code, notes, and snippets.

@Monoverde888
Created July 13, 2020 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Monoverde888/a642db716c02f33f4acaa0e5fc94da60 to your computer and use it in GitHub Desktop.
Save Monoverde888/a642db716c02f33f4acaa0e5fc94da60 to your computer and use it in GitHub Desktop.
C:\Users\Usuario1\Desktop\infinitybot>npm start
> infinitybot@1.0.0 start C:\Users\Usuario1\Desktop\infinitybot
> echo Iniciando bot.. && node bot.js
Iniciando bot..
Bot iniciado correctamente, soy [bot privado]
Unido a un canal de voz
C:\Users\Usuario1\Desktop\infinitybot\comandos\join.js:7
connection.play(fs.createReadStream('test.ogg'), { type: 'ogg/opus' });
^
ReferenceError: connection is not defined
at module.exports (C:\Users\Usuario1\Desktop\infinitybot\comandos\join.js:7:2)
at module.exports (C:\Users\Usuario1\Desktop\infinitybot\eventos\message.js:16:3)
at Client.emit (events.js:310:20)
at MessageCreateAction.handle (C:\Users\Usuario1\Desktop\infinitybot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\Usuario1\Desktop\infinitybot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\Usuario1\Desktop\infinitybot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
at WebSocketShard.onPacket (C:\Users\Usuario1\Desktop\infinitybot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:436:22)
at WebSocketShard.onMessage (C:\Users\Usuario1\Desktop\infinitybot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)
at WebSocket.onMessage (C:\Users\Usuario1\Desktop\infinitybot\node_modules\ws\lib\event-target.js:125:16)
at WebSocket.emit (events.js:310:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! infinitybot@1.0.0 start: `echo Iniciando bot.. && node bot.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the infinitybot@1.0.0 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! C:\Users\Usuario1\AppData\Roaming\npm-cache\_logs\2020-07-13T23_25_59_701Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment