# S006 fm commands on ListenBrainz ## Built Audit only; code was already on ListenBrainz (api.rs, covers.rs). Features and the fields they read from the adapter: - Top lists (`fm top`, ta/tab/tt): name, artist.name, playcount, url, image. - Recent / now playing: name, artist, album, `@attr.nowplaying`, image, date. - Profile: name, playcount, artist/album/track counts, `registered.unixtime` (first listen), week favourites. realname/country are absent and skipped silently (no empty labels). - Who Knows (wk/wkt/wka): `plays()` by MBID first, then name; top 1000 only. - Chart, Pixel Jumble: album image via covers.rs chain. Lyrics: track name/artist, Deezer title search. - Dashboard link (src/web/api.rs): link_account / unlink / linked_name. - Dropped: listeners, global playcount, bio, tags (never shown by any card). Last.fm site only used for "Go to song" links. - Text: topgg.md now says ListenBrainz. `grep -rni "audioscrobbler\|api_key\|LASTFM_API" src` finds only unrelated keys (ZENSERP, STEAMGRIDDB, VIRUSTOTAL). ## Checks 1. `/fm` with a linked user shows now playing or last listen with cover. 2. `/fm top artists weekly`, `monthly`, `yearly`, `overall` each show a list or "no stats yet" card. 3. `fm profile` shows listens, counts, "Listening since" date, no empty labels. 4. `fm recent` lists 50 listens. 5. `wk` in a server with 2 linked users ranks both. 6. `chart 3x3` makes a collage with covers. 7. `px` starts Pixel Jumble with a pixelated cover. 8. `lyrics` with no args uses the current song. 9. `fmset nosuchuserxyz` gives "There's no ListenBrainz user with that name." 10. Dashboard: set and clear ListenBrainz name works. 11. Live: `cargo test listenbrainz_live -- --ignored`. ## Doubts - Not run anywhere; only compile-checked. Fresh users with 204 (stats not ready) show an empty list, not a dedicated card message (not verified). ## Results (S010, 2026-12-01) - 1-10: not run: need Discord and linked accounts (owner, S011). 11: not run: needs internet (`listenbrainz_live`, owner say-so). - Checked here: `rg -i "audioscrobbler|LASTFM_API" src` finds no Last.fm API use; api.rs sample-JSON tests pass in `cargo test`.