Comments (6)
This is not a bug in the lib, you should handle possible race conditions as it works via websocket. Please read the documentation, check out the way Lavalink works, and how eris-lavalink communicates with it. While it can be easy, this isn't for beginners and is specifically geared towards public music bots which need the added performance benefit of distributed voice servers. If you don't need this, please consider using built-in eris voice/audio.
If you can find/verify a bug in eris-lavalink, please do submit an issue.
from eris-lavalink.
Last time I checked, there are no official Lavalink docs, just docs for the Eris Lavalink lib. Link? @briantanner
from eris-lavalink.
@briantanner, I don't think there is any Lavalink-related documentation.
from eris-lavalink.
https://github.com/Frederikam/Lavalink/blob/master/IMPLEMENTATION.md
from eris-lavalink.
Because it works over websocket, you will have to manage the possibility of race conditions, set proper cooldowns in you commands, prevent people from being able to play two songs in rapid succession, these sorta things. This is pretty standard regardless of lib, bot, etc.
from eris-lavalink.
@briantanner That doesn't seem to be the case. As I see it, this is entirely a problem with eris-lavalink
. I started debugging, and here's my log:
player.play() called
end event emitted
player.play() called
end event emitted
end event emitted
player.play() called
player.play() called
end event emitted
end event emitted
end event emitted
end event emitted
player.play() called
player.play() called
player.play() called
end event emitted
end event emitted
As you can see, the first 3 lines went fine, but then the player went haywire and started emitting end
events like crazy. According to Lavalink, everything is all fine. I'm not sure what is up with this lib, but no one else is having this issue, and it's definitely not a rate limiting issue like you suggested.
from eris-lavalink.
Related Issues (18)
- License? HOT 2
- eris-lavalink does not support Lavalink 2.x yet HOT 2
- Player.paused is undefined? HOT 2
- player.setPause() does nothing HOT 2
- TypeError: fn is not a function HOT 1
- Add volume property to player HOT 3
- Error: unexpected server response (404) HOT 1
- Error event emitted without shard id
- end event weirdness
- Socket hang up from host. HOT 1
- TypeError: Cannot read property 'channels' of undefined HOT 1
- Voice connection timeout HOT 2
- NPM install does not work
- [Question]: Is there any playlist commands?
- Voice Timeout set twice
- Voice connection timeout HOT 34
- EventEmitter leak? HOT 1
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 eris-lavalink.