···3import { nowplaying } from "cmd/nowplaying";
4import { scrobbles } from "cmd/scrobbles";
5import { search } from "cmd/search";
06import { whoami } from "cmd/whoami";
7import { Command } from "commander";
8import version from "../package.json" assert { type: "json" };
···57 )
58 .description("Search for tracks, albums, or accounts.")
59 .action(search);
0000006061program.parse(process.argv);
···3import { nowplaying } from "cmd/nowplaying";
4import { scrobbles } from "cmd/scrobbles";
5import { search } from "cmd/search";
6+import { stats } from "cmd/stats";
7import { whoami } from "cmd/whoami";
8import { Command } from "commander";
9import version from "../package.json" assert { type: "json" };
···58 )
59 .description("Search for tracks, albums, or accounts.")
60 .action(search);
61+62+program
63+ .command("stats")
64+ .argument("[did]", "The DID or handle of the user to get stats for.")
65+ .description("Get the user's listening stats.")
66+ .action(stats);
6768program.parse(process.argv);