disgoorg / disgolink Goto Github PK
View Code? Open in Web Editor NEWA Golang Lavalink Client
License: Apache License 2.0
A Golang Lavalink Client
License: Apache License 2.0
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,
})
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 :)
With 4bd1cfd, CloseAbnormalClosure
was added as an expected Websocket close error.
Line 146 in ae2c5b1
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.