···22 duration: number
23) {
24 try {
0025 const recentPlays = await getRecentPlays(agent, 5);
26 // Check if the track was played in the last 5 plays (verify by MBID and timestamp to avoid duplicates)
27 const alreadyPlayed = recentPlays.some((play) => {
···22 duration: number
23) {
24 try {
25+ // wait 15 seconds to ensure the track is actually being played
26+ await new Promise((resolve) => setTimeout(resolve, 15000));
27 const recentPlays = await getRecentPlays(agent, 5);
28 // Check if the track was played in the last 5 plays (verify by MBID and timestamp to avoid duplicates)
29 const alreadyPlayed = recentPlays.some((play) => {