feat(stats): persist user and global track counts in mysql tables

This commit is contained in:
NoLogicAlan committed 2026-10-24 01:55:21 +03:00
1 parent 70f124294d
commit a780ec22c8
6 files changed
+170 -12

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ export async function run(message, data) {
return;
}
const messages = p.playFirst(query, provider);
const requester = message.author?.id ?? message.authorId ?? null;
const messages = p.playFirst(query, provider, { requester });
messages.on("message", d => {
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(d);
if (statusMsg) statusMsg.edit({ embeds: [embed] }).catch(() => {});