1
2
3
4
5
6
7
8
9
10
11
12
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;
})();