···33import { nowplaying } from "cmd/nowplaying";
44import { scrobbles } from "cmd/scrobbles";
55import { search } from "cmd/search";
66+import { stats } from "cmd/stats";
67import { whoami } from "cmd/whoami";
78import { Command } from "commander";
89import version from "../package.json" assert { type: "json" };
···5758 )
5859 .description("Search for tracks, albums, or accounts.")
5960 .action(search);
6161+6262+program
6363+ .command("stats")
6464+ .argument("[did]", "The DID or handle of the user to get stats for.")
6565+ .description("Get the user's listening stats.")
6666+ .action(stats);
60676168program.parse(process.argv);