mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
This commit is contained in:
1 parent
08e5d363fc
commit
665be29a16
9 files changed
+303
-39
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user