mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
- Add %lastfm leaderboard (alias: lb) command with paginated embed showing top users ranked by scrobble count with 🥇🥈🥉 medals; emoji reactions ◀️▶️❌ for navigation, auto-expires after timeout - Add getLeaderboard() to LastFmManager: paginated query on scrobble_count DESC from lastfm_users, returns entries/totalPages - Add syncUserScrobbleCount(): syncs local counter from Last.fm user.getinfo playcount; called on every %lastfm profile view - Add _incrementScrobbleCount(): fire-and-forget increment of both per-user scrobble_count and global stored_scrobbles after each successful scrobble - Add scrobble_count BIGINT column to lastfm_users with auto-migrate ALTER TABLE for existing installs (error silently ignored if column already exists) - Add lastfm_stats table (single-row) tracking stored_scrobbles and linked_users globally; row is seeded with INSERT IGNORE on init - Add getStoredScrobbles() and getLinkedUsersCount() with lazy in-memory caching for the stats row - Add linked_users increment on first-time account link - Show scrobble count and linked users in %stats embed when Last.fm is enabled (fetched in parallel, non-blocking on initial reply) - Add locale keys responses.stats.scrobbles and responses.stats.linkedUsers to en, ar-SA, ckb, de-DE, pt-BR