Git Product home page Git Product logo

Comments (6)

briantanner avatar briantanner commented on July 4, 2024

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.

PassTheMayo avatar PassTheMayo commented on July 4, 2024

Last time I checked, there are no official Lavalink docs, just docs for the Eris Lavalink lib. Link? @briantanner

from eris-lavalink.

auguwu avatar auguwu commented on July 4, 2024

@briantanner, I don't think there is any Lavalink-related documentation.

from eris-lavalink.

briantanner avatar briantanner commented on July 4, 2024

https://github.com/Frederikam/Lavalink/blob/master/IMPLEMENTATION.md

from eris-lavalink.

briantanner avatar briantanner commented on July 4, 2024

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.

PassTheMayo avatar PassTheMayo commented on July 4, 2024

@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)

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.