a fun bot for the hc slack
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}