lavalink-client 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -14,21 +14,34 @@ npm install tomato6966/lavalink-client
|
|
|
14
14
|
|
|
15
15
|
# Features
|
|
16
16
|
|
|
17
|
-
-
|
|
17
|
+
- 💯 Lavalink v4 Supported only (with Lavalink Plugins)
|
|
18
|
+
|
|
19
|
+
- ✅ Player-Destroy Reasons like:
|
|
18
20
|
- Channel got deleted, Player got disconnected...
|
|
19
|
-
|
|
21
|
+
|
|
22
|
+
- ✨ Choose able queue stores (maps, collections, redis, databases, ...)
|
|
20
23
|
- You can create your own queueStore, thus make it easy to sync queues accross multiple connections (e.g. dashboard-bot)
|
|
21
|
-
|
|
22
|
-
-
|
|
24
|
+
|
|
25
|
+
- 😍 Included Filter & Equalizer Management
|
|
26
|
+
|
|
27
|
+
- 👍 Multiple Player Options *for easier use*
|
|
23
28
|
- onDisconnect -> Player Destroy / auto Reconnect
|
|
24
29
|
- onEmptyQueue -> Player Destroy / leave After x Time
|
|
25
30
|
- instaFixFilter -> seek the player after applying a filter, to instantly apply it's effect (only works for little-durational-songs)
|
|
26
31
|
- applyVolumeAsFilter -> instead of using lavalink.volume, it uses lavalink.filters.volume which is much different!
|
|
27
|
-
|
|
32
|
+
|
|
33
|
+
- 🛡️ Lavalink Validations
|
|
28
34
|
- It only let's you use the filters / plugins / sources, if Lavalink actually has it enabled
|
|
29
|
-
|
|
35
|
+
|
|
36
|
+
- 🧑💻 Memory friendly and easy style
|
|
30
37
|
- Only the required data is displayed, and the store-way & types match Lavalink#IMPLEMENTATION.md
|
|
31
|
-
|
|
38
|
+
|
|
39
|
+
- 😘 Automated Handlings
|
|
40
|
+
- Skips the songs, on TrackEnd, TrackStuck, TrackError,
|
|
41
|
+
- Destroys the player on channeldelete
|
|
42
|
+
- Pauses / resumes the player if it get's muted / unmuted (server-wide) [soon]
|
|
43
|
+
- ...
|
|
44
|
+
- 😁 Much much more!
|
|
32
45
|
|
|
33
46
|
# Documentation
|
|
34
47
|
|
|
@@ -113,4 +126,13 @@ await player.play(); // you can provide specific track, or let the manager choos
|
|
|
113
126
|
|
|
114
127
|
## Example (typescript)
|
|
115
128
|
|
|
116
|
-
Can be found in the [
|
|
129
|
+
Can be found in the [`/testBot`](https://github.com/Tomato6966/lavalink-client/blob/main/testBot/README.md) Directory
|
|
130
|
+
|
|
131
|
+
It contains the following features:
|
|
132
|
+
|
|
133
|
+
- Example Use for `Redis based Queue`
|
|
134
|
+
- Example Use for `Queue Changes Watcher Logger`
|
|
135
|
+
- Example Use for `Filters`, `Audio Output`, `equalizers`
|
|
136
|
+
- How to make an easy, yet advanced `Slash Commands Only Bot`
|
|
137
|
+
- `Slim Memory Usage`
|
|
138
|
+
- `All lavalink-client events` displayments
|
|
@@ -495,7 +495,6 @@ class LavalinkNode {
|
|
|
495
495
|
const player = this.NodeManager.LavalinkManager.getPlayer(payload.guildId);
|
|
496
496
|
if (!player)
|
|
497
497
|
return;
|
|
498
|
-
console.log(payload.type);
|
|
499
498
|
switch (payload.type) {
|
|
500
499
|
case "TrackStartEvent":
|
|
501
500
|
this.trackStart(player, player.queue.current, payload);
|
|
@@ -24,7 +24,7 @@ class ManagerUitls {
|
|
|
24
24
|
title: data.info?.title,
|
|
25
25
|
author: data.info?.author,
|
|
26
26
|
duration: data.info?.length,
|
|
27
|
-
artworkUrl: data.info?.artworkUrl || data.pluginInfo?.artworkUrl || data.plugin?.artworkUrl
|
|
27
|
+
artworkUrl: data.info?.artworkUrl || data.pluginInfo?.artworkUrl || data.plugin?.artworkUrl,
|
|
28
28
|
uri: data.info?.uri,
|
|
29
29
|
sourceName: data.info?.sourceName,
|
|
30
30
|
isSeekable: data.info?.isSeekable,
|
|
@@ -491,7 +491,6 @@ export class LavalinkNode {
|
|
|
491
491
|
const player = this.NodeManager.LavalinkManager.getPlayer(payload.guildId);
|
|
492
492
|
if (!player)
|
|
493
493
|
return;
|
|
494
|
-
console.log(payload.type);
|
|
495
494
|
switch (payload.type) {
|
|
496
495
|
case "TrackStartEvent":
|
|
497
496
|
this.trackStart(player, player.queue.current, payload);
|
|
@@ -21,7 +21,7 @@ export class ManagerUitls {
|
|
|
21
21
|
title: data.info?.title,
|
|
22
22
|
author: data.info?.author,
|
|
23
23
|
duration: data.info?.length,
|
|
24
|
-
artworkUrl: data.info?.artworkUrl || data.pluginInfo?.artworkUrl || data.plugin?.artworkUrl
|
|
24
|
+
artworkUrl: data.info?.artworkUrl || data.pluginInfo?.artworkUrl || data.plugin?.artworkUrl,
|
|
25
25
|
uri: data.info?.uri,
|
|
26
26
|
sourceName: data.info?.sourceName,
|
|
27
27
|
isSeekable: data.info?.isSeekable,
|
package/package.json
CHANGED