Comments (4)
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.
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.
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.
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)
- Help command
- Voting HOT 3
- yq fails when first result is a channel HOT 2
- `yq` should respect video queue checks
- Lack of permission to run @Bot init, while I am the owner of the server HOT 4
- No API key found? HOT 1
- Random crashes when using `list saved` HOT 1
- stray ffmpeg processes HOT 2
- Windows not playing HOT 2
- Playlist function doesn't work HOT 12
- Show total playtime in `list` HOT 1
- Suggestion: Soundcloud functionality HOT 2
- ENOENT error when opening stream HOT 3
- yt command does not work HOT 3
- No sound after ytdl update 0.7.10 HOT 3
- Error: You entered a bad email!, although email is correct & exists HOT 8
- Not playing Audio HOT 2
- Audio turns on and off when playing a youtube video.
- Runs fine on OS X
- Fedora - TypeError: Cannot read property 'username' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lethe.