diff --git a/dist/src/Player/Player.d.ts b/dist/src/Player/Player.d.ts index 0ed35d99..47ea3ad9 100644 --- a/dist/src/Player/Player.d.ts +++ b/dist/src/Player/Player.d.ts @@ -98,8 +98,6 @@ export declare class Player extends EventEmitter { deaf: boolean; /** The volume of the player (0-1000) */ volume: number; - lastPlayTimestamp: any; - cooldown: any; /** Should only be used when the node is a NodeLink */ protected voiceReceiverWsClient: WebSocket | null; protected isConnectToVoiceReceiver: boolean; diff --git a/dist/src/Player/Player.js b/dist/src/Player/Player.js index 8fddcd09..ef8a4f04 100644 --- a/dist/src/Player/Player.js +++ b/dist/src/Player/Player.js @@ -69,8 +69,6 @@ class Player extends events_1.EventEmitter { deaf; /** The volume of the player (0-1000) */ volume; - lastPlayTimestamp; - cooldown; /** Should only be used when the node is a NodeLink */ voiceReceiverWsClient; isConnectToVoiceReceiver; @@ -471,42 +469,17 @@ class Player extends events_1.EventEmitter { break; } case "TrackEndEvent": { + this.previousTrack = this.currentTrack; + this.currentTrack = null; if (["loadFailed", "cleanup", "replaced"].includes(data.reason)) { if (this.queue.length === 0 && this.loop === "NONE") { return this.poru.emit("queueEnd", this); } else { - await this.poru.emit("trackEnd", this, this.currentTrack, data); - // Cooldown tracking logic for first and second play - const now = Date.now(); - if (!this.lastPlayTimestamp) { - this.lastPlayTimestamp = now; - setTimeout(async () => { - await this.play(); - }, 3000); - return; - } - const timeSinceLastPlay = now - this.lastPlayTimestamp; - if (timeSinceLastPlay <= 5000) { - // Add a cooldown of 10 seconds - if (!this.cooldown || now - this.cooldown > 10000) { - this.cooldown = now; - this.lastPlayTimestamp = null; // Reset the timestamp to avoid repeated cooldowns - // this.poru.emit("cooldown", this, 10); // Emit cooldown event (optional) - // this.message.delete().catch(e => null) - console.log("Cooldown active for 10 seconds due to rapid first and second plays."); - return; - } - } - this.lastPlayTimestamp = now; // Update the timestamp for the next play call - setTimeout(async () => { - await this.play(); - }, 3000); + this.poru.emit("trackEnd", this, this.currentTrack, data); return; } } - this.previousTrack = this.currentTrack; - this.currentTrack = null; if (this.loop === "TRACK") { this.queue.unshift(this.previousTrack); await this.poru.emit("trackEnd", this, this.currentTrack, data); diff --git a/dist/src/Player/Player.js.map b/dist/src/Player/Player.js.map index 4cc24d95..f62a9fba 100644 --- a/dist/src/Player/Player.js.map +++ b/dist/src/Player/Player.js.map @@ -1 +1 @@ -{"version":3,"file":"Player.js","sourceRoot":"","sources":["../../../src/Player/Player.ts"],"names":[],"mappings":";;;;;;AAGA,6CAAyC;AACzC,2DAAkC;AAClC,mCAAqC;AACrC,uCAAmC;AACnC,gDAA+D;AAC/D,4CAA0B;AAI1B,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE;IACnC,IAAI,CAAC;QACH,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;IAC5C,CAAC;IAAC,MAAM,CAAC,CAAC,CAAC;AACb,CAAC,CAAA;AAIA,CAAC;AAYD,CAAC;AAwBD,CAAC;AASF;;;GAGG;AACH,MAAa,MAAO,SAAQ,qBAAY;IACtB,IAAI,CAAyB;IAC7C,oDAAoD;IAC7C,IAAI,CAAM;IACjB,2CAA2C;IACpC,IAAI,CAAM;IACjB,iDAAiD;IAC1C,UAAU,CAAY;IAC7B,0CAA0C;IACnC,KAAK,CAAO;IACnB,6CAA6C;IACtC,OAAO,CAAS;IACvB,+CAA+C;IACxC,OAAO,CAAQ;IACtB,+CAA+C;IACxC,YAAY,CAAQ;IAC3B,sDAAsD;IAC/C,WAAW,CAAQ;IAC1B,kCAAkC;IAC3B,YAAY,CAAc;IACjC,kCAAkC;IAC3B,aAAa,CAAc;IAClC,iEAAiE;IAC1D,SAAS,CAAS;IACzB,oEAAoE;IAC7D,QAAQ,CAAS;IACxB,oEAAoE;IAC7D,WAAW,CAAS;IAC3B,kDAAkD;IAC3C,UAAU,CAAS,CAAC,qBAAqB;IAChD,+DAA+D;IACxD,WAAW,CAAS,CAAC,qBAAqB;IACjD,wCAAwC;IACjC,I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BACD,OAAO,CAAC,CAAC,CAAC;oBACR,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,4DAA4D,OAAO,EAAE,CAAC,CAAA;oBAC9G,MAAM;gBACR,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,EAAE,+DAA+D,GAAG,GAAG,CAAC,CAAC;QACpH,CAAC;QAAA,CAAC;IACJ,CAAC;IAAA,CAAC;IACF;;;;QAII;IACI,kBAAkB,CAAC,KAAU;QACnC,IAAI,CAAC,KAAK;YAAE,OAAM;QAClB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,uEAAuE,IAAI,CAAC,IAAI,CAAC,IAAI,mCAAmC,KAAK,CAAC,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC;IACzK,CAAC;IAAA,CAAC;CACH;AAtxBD,wBAsxBC"} \ No newline at end of file +{"version":3,"file":"Player.js","sourceRoot":"","sources":["../../../src/Player/Player.ts"],"names":[],"mappings":";;;;;;AAGA,6CAAyC;AACzC,2DAAkC;AAClC,mCAAqC;AACrC,uCAAmC;AACnC,gDAA+D;AAC/D,4CAA0B;AAI1B,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE;IACnC,IAAI,CAAC;QACH,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;IAC5C,CAAC;IAAC,MAAM,CAAC,CAAC,CAAC;AACb,CAAC,CAAA;AAIA,CAAC;AAYD,CAAC;AAwBD,CAAC;AASF;;;GAGG;AACH,MAAa,MAAO,SAAQ,qBAAY;IACtB,IAAI,CAAyB;IAC7C,oDAAoD;IAC7C,IAAI,CAAM;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IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,uEAAuE,IAAI,CAAC,IAAI,CAAC,IAAI,mCAAmC,KAAK,CAAC,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC;IACzK,CAAC;IAAA,CAAC;CACH;AApvBD,wBAovBC"} \ No newline at end of file diff --git a/src/Player/Player.ts b/src/Player/Player.ts index 51d8c0ac..d525fac5 100644 --- a/src/Player/Player.ts +++ b/src/Player/Player.ts @@ -113,8 +113,6 @@ export class Player extends EventEmitter { public deaf: boolean /** The volume of the player (0-1000) */ public volume: number - public lastPlayTimestamp:any - public cooldown:any /** Should only be used when the node is a NodeLink */ protected voiceReceiverWsClient: WebSocket | null @@ -320,7 +318,7 @@ export class Player extends EventEmitter { * @param {number} position - The position to seek to (in milliseconds). */ public async seekTo(position: number) { - + await this.node.rest.updatePlayer({ guildId: this.guildId, data: { position } }) }; @@ -572,61 +570,28 @@ export class Player extends EventEmitter { break } case "TrackEndEvent": { + this.previousTrack = this.currentTrack + this.currentTrack = null if (["loadFailed", "cleanup", "replaced"].includes(data.reason)) { - if (this.queue.length === 0 && this.loop === "NONE") { + if (this.queue.length === 0 && this.loop ==="NONE") { return this.poru.emit("queueEnd", this) } else { - - await this.poru.emit("trackEnd", this, this.currentTrack!, data) - - // Cooldown tracking logic for first and second play - const now = Date.now(); - if (!this.lastPlayTimestamp) { - this.lastPlayTimestamp = now; - setTimeout(async () => { - await this.play(); - }, 3000); - return; - } - - const timeSinceLastPlay = now - this.lastPlayTimestamp; - - if (timeSinceLastPlay <= 5000) { - // Add a cooldown of 10 seconds - if (!this.cooldown || now - this.cooldown > 10000) { - this.cooldown = now; - this.lastPlayTimestamp = null; // Reset the timestamp to avoid repeated cooldowns - // this.poru.emit("cooldown", this, 10); // Emit cooldown event (optional) - // this.message.delete().catch(e => null) - console.log("Cooldown active for 10 seconds due to rapid first and second plays."); - return; - } - } - - this.lastPlayTimestamp = now; // Update the timestamp for the next play call - setTimeout(async () => { - await this.play(); - }, 3000); + this.poru.emit("trackEnd", this, this.currentTrack!, data) return; } - } - this.previousTrack = this.currentTrack - this.currentTrack = null - - if (this.loop === "TRACK") { this.queue.unshift(this.previousTrack!) await this.poru.emit("trackEnd", this, this.currentTrack!, data) return await this.play() - + } else if (this.loop === "QUEUE") { - this.queue.push(this.previousTrack!) - await this.poru.emit("trackEnd", this, this.currentTrack!, data) - return await this.play() + this.queue.push(this.previousTrack!) + await this.poru.emit("trackEnd", this, this.currentTrack!, data) + return await this.play() } if (this.queue.length === 0) { @@ -642,6 +607,7 @@ export class Player extends EventEmitter { this.poru.emit("queueEnd", this) break } + case "TrackStuckEvent": { this.poru.emit("trackError", this, this.currentTrack!, data) await this.skip();