Giter Club home page Giter Club logo

Comments (4)

meew0 avatar meew0 commented on August 23, 2024

A workaround is commenting out a line in fluent-ffmpeg (see the README). I haven't been able to get proper error handling working yet, I still need to do that.

from lethe.

meew0 avatar meew0 commented on August 23, 2024

In commits e9f9e85 to adcf966 this particular ffmpeg error was fixed, but now discord.js crashes with the following error message:

/home/miras/Projects/lethe/node_modules/discord.js/lib/Voice/VoiceConnection.js:71
            this.instream.destroy();
                          ^

TypeError: this.instream.destroy is not a function
    at VoiceConnection.stopPlaying (/home/miras/Projects/lethe/node_modules/discord.js/lib/Voice/VoiceConnection.js:71:18)
    at playStopped (/home/miras/Projects/lethe/lethe.js:303:72)
    at Client.<anonymous> (/home/miras/Projects/lethe/lethe.js:71:5)
    at emitOne (events.js:77:13)
    at Client.emit (events.js:169:7)
    at WebSocket.websocket.onmessage (/home/miras/Projects/lethe/node_modules/discord.js/lib/Client/InternalClient.js:1056:14)
    at WebSocket.onMessage (/home/miras/Projects/lethe/node_modules/ws/lib/WebSocket.js:414:14)
    at emitTwo (events.js:92:20)
    at WebSocket.emit (events.js:172:7)
    at Receiver.ontext (/home/miras/Projects/lethe/node_modules/ws/lib/WebSocket.js:797:10)

from lethe.

meew0 avatar meew0 commented on August 23, 2024

The bug was fixed in discord.js, however we will have to wait for a full release on NPM in order to be able to use this. For now, follow these steps if you absolutely need these to work:

  • git clone https://github.com/hydrabolt/discord.js.git
  • go into the folder and do npm install to install dev dependencies
  • make sure grunt CLI is installed (do sudo npm install -g grunt-cli if it's not)
  • do grunt --dev. Inside the discord.js folder there should now be a lib folder.
  • Copy the whole discord.js folder into Lethe's node_modules, replacing the old one

from lethe.

meew0 avatar meew0 commented on August 23, 2024

discord.js changed to having the lib folder inside the repo again, this means that this issue is fixed in c4996ea.

from lethe.

Related Issues (20)

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.