Commit Graph

22 Commits

Author SHA1 Message Date
Tyler 90365cd9e4 Use errgroup for a cleaner and no-deadlock implementation of AddNodes 2021-01-06 21:00:14 -05:00
Tyler d99e202995 Handle node removal better to ensure players aren't used if there's no node 2020-06-21 22:53:33 -04:00
Tyler 169cc4f563 Proper locking, start to User-Agent population 2020-06-19 23:19:33 -04:00
Tyler c5910e7f5d Better event handling via DiscordGo's handlers 2020-06-19 22:50:55 -04:00
Tyler ef903095c9 Full support for changing nodes 2019-10-13 00:04:01 -04:00
Tyler ba383db391 Implement node auto switching 2019-10-12 23:57:59 -04:00
Tyler a6ec9bedd2 Add user join/leave events 2019-10-12 21:13:23 -04:00
Tyler 8e8ab7b8b4 Support for userListen op 2019-02-03 19:31:53 -05:00
Tyler 580ef99f87 fastjson, cleanup 2019-01-13 18:37:38 -05:00
Tyler Hill d6688b63c7
Delete key, not set value to nil 2018-11-02 22:29:50 -05:00
Christopher F e1f823649f feature: expose player Guild ID, current track 2018-08-25 22:59:07 -04:00
Christopher F 2fd6d25b7b feature: add volume cache to player 2018-08-25 22:24:56 -04:00
Christopher F 6e30995fe6 fix: set pause state to false when playing new track
lavalink will internally force a play regardless of the prior pause
state, so the player's detached pause state must reflect this
2018-08-24 17:17:58 -04:00
Christopher F d3b8f06f15 meta: add editorconfig 2018-08-23 21:24:20 -04:00
Christopher F 746f26291f fix: pause, position, volume should be ptrs
prevents encoding/json from omitting these values when
set to falsy real data (false, 0)
2018-08-23 21:20:54 -04:00
Christopher F 59811adafe lint: optional json structs must be ptrs 2018-08-23 18:51:01 -04:00
Christopher F 20f5db7e50 feature: add VSU forwarding to player
this allows VSUs to be forwarded without needing to destroy and recreate
a player
2018-08-23 18:44:50 -04:00
Christopher F 25d8b0f862 feature: add pause state, expose position on player 2018-08-23 18:40:36 -04:00
Christopher F 566c1b0777 fix: use discordgo fork, complete lavalink handshake
this works.
2018-08-22 21:07:22 -04:00
Christopher F 28ddb171ff meta: add example project 2018-08-22 19:39:36 -04:00
Christopher F b1983105f3 feature: feature complete lavalink 2018-08-22 18:58:01 -04:00
Christopher F 9b3baebda1 feature: add player 2018-08-22 18:44:20 -04:00