import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook";
import process from "node:process";
export async function handleOnboardingReferral({ auth, referral, handle }: {
auth: string;
referral: string;
handle: string;
}) {
if (auth !== process.env.handleOnboardingReferral)
return false;
if (!referral.trim().length)
return;
await discordWebhook({
url: process.env.discordUserEvents,
content: handle + " heard about us from " + referral,
});
return true;
}