This commit is contained in:
laura 2025-12-09 19:25:04 -03:00
parent 862b11b9ef
commit 9c6da082a0
Signed by: w
GPG key ID: BCD2117C99E69817
31 changed files with 441 additions and 263 deletions

View file

@ -15,6 +15,8 @@ interface Track {
url: string;
}
export const FM_USER = "satisfeita";
const secret = Deno.env.get("FM_SECRET");
export let tracks: (() => Track[]) | undefined;
@ -22,7 +24,7 @@ if (secret) {
const client = new LastClient(secret);
tracks = await withInterval(async () => {
const { tracks: raw } = await client.user.getRecentTracks("favewa", {
const { tracks: raw } = await client.user.getRecentTracks(FM_USER, {
limit: 5,
extended: true,
});