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