Giter Site home page Giter Site logo

disgolink's People

Contributors

dankochetov avatar dependabot-preview[bot] avatar dependabot[bot] avatar fiwippi avatar fr-str avatar mlnrdev avatar orbwebos avatar redfer13 avatar topi314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

disgolink's Issues

Lavalink Node `connection refused`

Hello.

I am trying to setup the DiscordGo example that's provided however I'm running into an issue when trying to run the following code:

b.Lavalink.AddNode(ctx, disgolink.NodeConfig{
		Name:     NodeName,
		Address:  NodeAddress,
		Password: NodePassword,
		Secure:   NodeSecure,
	})

Stack Trace

2023/12/05 03:22:51 ERROR failed to reconnect node name=disgolink_client name=disgolink_node node_name=main err="dial tcp 127.0.0.1:2333: connect: connection refused" try=0
2023/12/05 03:22:53 ERROR failed to reconnect node name=disgolink_client name=disgolink_node node_name=main err="dial tcp 127.0.0.1:2333: connect: connection refused" try=1
2023/12/05 03:22:57 ERROR failed to reconnect node name=disgolink_client name=disgolink_node node_name=main err="dial tcp 127.0.0.1:2333: connect: connection refused" try=2
panic: context deadline exceeded

goroutine 1 [running]:
main.(*Bot).AddLavalinkNode(0xc00009d020, {0x1405ee8, 0xc00011cb60})
        /internal/bot/disgolink.go:42 +0xa31
main.main()
        /internal/bot/main.go:57 +0x2d1

I'm not sure how this should work but should AddNode start another service on the host using those params ? It seems like it's not creating anything and that it can't connect ? Unless I'm not understanding how the lavalink stuff behind this works or I'm doing something wrong ๐Ÿค”

Can somebody advise ?

Thank you :)

No reconnect on: CloseAbnormalClosure

With 4bd1cfd, CloseAbnormalClosure was added as an expected Websocket close error.

if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {

This results in the node not attempting a reconnect.
Furthermore, no log is printed and the bot stops working until manually calling reconnect or recreating the node.
CloseAbnormalClosure should be removed from the list of expected error since an AbnormalClosure is never expected

How to use VoiceStateUpdate/VoiceServerUpdate ?

Hi, I've looked around at this repo and the Lavalink docs and apart from having to join a voice channel and sending the play command to Lavalink, you also have to send VoiceStateUpdate or VoiceServerUpdate op to Lavalink (I'm not sure which one).

Could you please explain/provide an example?

For context I'm using the non-specific implementation.

Thanks

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.