feat(music): persist music analytics to MySQL with 24h/year timeframes and personal recap

This commit is contained in:
NoLogicAlan committed 2026-11-21 02:02:04 +03:00
1 parent da477ebf03
commit c9332a15af
15 files changed
+274 -166

No files matched your search

+2 -2
View File
@@ -266,7 +266,7 @@ class Player extends EventEmitter {
const channelId = this._channelId ?? this._home247Channel;
if (channelId) {
const ch = this.client?.channels?.get?.(channelId);
const fromChannel = ch?.guildId ?? ch?.guild?.id ?? null;
const fromChannel = ch?.guildId ?? ch?.guild?.id ?? ch?.serverId ?? ch?.server_id ?? null;
if (fromChannel) return cleanId(fromChannel);
}
} catch(e) { logger.warn("[Player] Guild resolution failed:", e?.message); }
@@ -525,7 +525,7 @@ class Player extends EventEmitter {
}
this._channelId = channelId;
this._guildId = cleanId(channel.guildId);
this._guildId = cleanId(channel.guildId ?? channel.guild?.id ?? channel.serverId ?? channel.server_id ?? "");
this._lastConnectedAt = Date.now();
this.leaving = false;