import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook?v=3";
import process from "node:process";
export async function handleOnboardingUseCases({ auth, handle, useCases }: {
auth: string;
handle: string;
useCases: string[];
}) {
if (auth !== process.env.handleOnboardingReferral)
return false;
if (!useCases.length)
return;
await discordWebhook({
url: process.env.newUserDiscord,
content: handle + " wants to " + JSON.stringify(useCases),
});
return true;
}