Skip to content

nermalcat69/minimal-waitlist

Repository files navigation

Minimal Waitlist

Frame 302

Minimal Waitlist Page with Discord Webhooks

How to import to zerops

Go to zerops dashboard and import this project:

project:
  name: Minimal Waitlist
services:
  - hostname: app
    type: nodejs@20
    buildFromGit: https://github.com/nermalcat69/minimal-waitlist
    enableSubdomainAccess: true

You can assign the DISCORD_WEBHOOK_URLenvironment variable in the service dashboard.

Make sure to create and copy your webhook URL from your Discord server:

Go to your server settings. Navigate to the desired text channel. Open 'Integrations' > 'Webhooks'. Create a new webhook and copy the webhook URL.

How to export emails to json in discord channel

  1. Go to your waitlist channel on your browser and open developer tools and paste the code block in console.
const emailRegex = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;

const allText = document.body.innerText;

const emails = new Set(allText.match(emailRegex));

const emailArray = Array.from(emails);
const emailJSON = JSON.stringify(emailArray, null, 2);

const blob = new Blob([emailJSON], { type: 'application/json' });
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = 'waitlist-emails.json';
link.click();

console.log("Waitlist exported!!", emailArray);