Minimal Waitlist Page with Discord Webhooks
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_URL
environment 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.
- 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);