mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
hotfix spam end
This commit is contained in:
1 parent
3a8c85becf
commit
288676937e
1 file changed
+7
-4
+7
-4
@@ -353,6 +353,7 @@ export default class Player extends EventEmitter {
|
|||||||
_currentPassthrough = null;
|
_currentPassthrough = null;
|
||||||
_wasRadio = false;
|
_wasRadio = false;
|
||||||
_radioAnnounced = false;
|
_radioAnnounced = false;
|
||||||
|
_queueEndedSent = false;
|
||||||
|
|
||||||
// Active audio filter — { key, label, payload } or null
|
// Active audio filter — { key, label, payload } or null
|
||||||
activeFilter = null;
|
activeFilter = null;
|
||||||
@@ -2104,7 +2105,8 @@ export default class Player extends EventEmitter {
|
|||||||
logger.voice247("[Player] 24/7 enabled, staying in channel");
|
logger.voice247("[Player] 24/7 enabled, staying in channel");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this._wasRadio) {
|
if (!this._wasRadio && !this._queueEndedSent) {
|
||||||
|
this._queueEndedSent = true;
|
||||||
const prefix = (() => {
|
const prefix = (() => {
|
||||||
try {
|
try {
|
||||||
return this.settingsMgr?.getServer?.(this._guildId)?.get?.("prefix")
|
return this.settingsMgr?.getServer?.(this._guildId)?.get?.("prefix")
|
||||||
@@ -2219,9 +2221,10 @@ export default class Player extends EventEmitter {
|
|||||||
logger.player(`[Player:${this._guildId}] Streaming: ${songData.title}`);
|
logger.player(`[Player:${this._guildId}] Streaming: ${songData.title}`);
|
||||||
|
|
||||||
// Reset all timing flags
|
// Reset all timing flags
|
||||||
this.startedPlaying = Date.now();
|
this.startedPlaying = Date.now();
|
||||||
this._paused = false;
|
this._paused = false;
|
||||||
this._pausedAt = null;
|
this._pausedAt = null;
|
||||||
|
this._queueEndedSent = false;
|
||||||
|
|
||||||
if (songData.type !== "radio" || !this._radioAnnounced) {
|
if (songData.type !== "radio" || !this._radioAnnounced) {
|
||||||
this.announceSong(songData);
|
this.announceSong(songData);
|
||||||
|
|||||||
Reference in new issue
Block a user