a fun bot for the hc slack
at v0.2.0 294 B view raw
1export async function fetchUserData(userId: string) { 2 const res = await fetch(`https://cachet.dunkirk.sh/users/${userId}/`); 3 const json = await res.json(); 4 5 return { 6 id: json.id, 7 expiration: json.expiration, 8 user: json.user, 9 displayName: json.displayName, 10 image: json.image, 11 }; 12}