feat: on-demand lyrics query, queue range clearing, and nodelink auto-reconnect (#13, #14, #20)

This commit is contained in:
NoLogicAlan committed 2026-10-22 01:16:33 +03:00
1 parent 08e5d363fc
commit 665be29a16
9 files changed
+303 -39

No files matched your search

+9
View File
@@ -288,12 +288,21 @@ class Remix {
this.lavalink = new LavalinkManager(config.nodelink ?? {}, client, { id: botId, username: client.user?.username ?? "bot" });
this.lavalink.on("ready", () => {
logger.lavalink("[Lavalink] Session ready");
if (this._hasBooted) {
this.players?.resumeAllOnNodeReconnect?.();
}
});
this.lavalink.on("nodeReconnect", () => {
if (this._hasBooted) {
this.players?.resumeAllOnNodeReconnect?.();
}
});
await this.lavalink.init();
this.playerContext.lavalink = this.lavalink;
}
this.gatewayHandler.onReady();
this._hasBooted = true;
this.fluxerlist?.startAutoStats?.(client);