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