Discord webhooks allow your Spoo.me instance to send notifications directly to your Discord server when users submit contact forms or report URLs. This integration keeps you informed about user interactions and potential issues.
You’ll need two separate webhooks: one for contact form submissions and another for URL reports. Both follow the same creation process but serve different purposes.
This webhook will receive notifications when users report potentially harmful or inappropriate URLs.
1
Select Report Channel
Navigate to the channel designated for URL reports (e.g., #url-reports)
Right-click on the channel
Select “Edit Channel”
Consider making this channel private or restricted to moderators only, as URL reports may contain sensitive information.
2
Create Second Webhook
Go to “Integrations” → “Webhooks”
Click “Create Webhook”
Name: Set to “URL Reports” or “Spoo.me Reports”
Channel: Ensure it points to your reports channel
Click “Copy Webhook URL”
This webhook will send structured messages containing details about reported URLs, including the original URL, reporter information, and reason for reporting.
3
Save the Report Webhook URL
Your URL report webhook URL format is identical to the contact webhook:
Once you have both webhook URLs, you’ll need to configure them as environment variables in your deployment:
Copy
# Contact form webhookCONTACT_WEBHOOK=https://discord.com/api/webhooks/1234567890123456789/AbCdEfGhIjKlMnOpQrStUvWxYz1234567890AbCdEfGhIjKlMnOpQrStUvWxYz# URL report webhook URL_REPORT_WEBHOOK=https://discord.com/api/webhooks/0987654321098765432/ZyXwVuTsRqPoNmLkJiHgFeDcBa0987654321ZyXwVuTsRqPoNmLkJiHgFeDcBa
Security Note: These webhook URLs are sensitive credentials. Never commit them to version control or share them publicly. Anyone with access to these URLs can send messages to your Discord channels.
When someone submits a contact form, you’ll receive a message like:
Copy
📧 **New Contact Form Submission****Name:** John Doe**Email:** [email protected]**Subject:** Feature Request**Message:** Hi, I'd love to see analytics export functionality added to the service. Is this something you're considering?**IP Address:** 192.168.1.100
Before deploying your Spoo.me instance, test both webhooks to ensure they’re working correctly:
Test your contact webhook:
Copy
curl -X POST "YOUR_CONTACT_WEBHOOK_URL" \ -H "Content-Type: application/json" \ -d '{ "content": "🧪 **Test Message**\n\nThis is a test of the contact form webhook. If you see this message, the webhook is configured correctly!" }'
Test your report webhook:
Copy
curl -X POST "YOUR_URL_REPORT_WEBHOOK_URL" \ -H "Content-Type: application/json" \ -d '{ "content": "🧪 **Test Message**\n\nThis is a test of the URL report webhook. If you see this message, the webhook is configured correctly!" }'
Test your contact webhook:
Copy
curl -X POST "YOUR_CONTACT_WEBHOOK_URL" \ -H "Content-Type: application/json" \ -d '{ "content": "🧪 **Test Message**\n\nThis is a test of the contact form webhook. If you see this message, the webhook is configured correctly!" }'
Test your report webhook:
Copy
curl -X POST "YOUR_URL_REPORT_WEBHOOK_URL" \ -H "Content-Type: application/json" \ -d '{ "content": "🧪 **Test Message**\n\nThis is a test of the URL report webhook. If you see this message, the webhook is configured correctly!" }'
Go back to your webhook settings in Discord
Click “Test Webhook” for each webhook
Send a test message to verify the webhook is active
Check that messages appear in the correct channels
If you see test messages in both channels, your webhooks are properly configured and ready to use.