import { fetch } from "https://esm.town/v/std/fetch";
export const farcasterFlings = (async () => {
let FARCASTER_USERNAME = "whatrocks";
let flings = await fetch(
`https://searchcaster.xyz/api/search?regex=%E2%8C%86&username=${FARCASTER_USERNAME}`,
).then((res) => res.json());
let filteredCasts = flings.casts.filter((cast) =>
cast.body.data.text[0] === "⌆"
);
return filteredCasts;
})();