mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
This commit is contained in:
1 parent
08e5d363fc
commit
665be29a16
9 files changed
+303
-39
No files matched your search
@@ -416,6 +416,7 @@ export class LavalinkManager extends EventEmitter {
|
||||
"[Lavalink] Node ready: " + node.id + " | session: " + this._sessionId
|
||||
);
|
||||
this.emit("ready", this._sessionId);
|
||||
this.emit("nodeConnect", node);
|
||||
} catch (e) {
|
||||
logger.warn(
|
||||
"[Lavalink] nodeConnect handler error:",
|
||||
@@ -425,6 +426,10 @@ export class LavalinkManager extends EventEmitter {
|
||||
};
|
||||
|
||||
this.lavalink.on("nodeConnect", onNodeConnect);
|
||||
this.lavalink.on("nodeReconnect", (node) => {
|
||||
onNodeConnect(node);
|
||||
this.emit("nodeReconnect", node);
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
if (!this._nodeConnected) {
|
||||
|
||||
Reference in new issue
Block a user