mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 09:06:15 +00:00
2.3 KiB
2.3 KiB
📊 Discord Webhooks
Get run summaries in Discord
💡 What Is It?
Sends a rich embed to your Discord server after each run with:
- 📊 Total accounts processed
- 💎 Points earned
- ⏱️ Execution time
- ❌ Errors encountered
⚡ Quick Start
1. Create Webhook in Discord
- Open Discord → Right-click channel
- Edit Channel → Integrations tab
- Create Webhook
- Copy webhook URL
2. Configure Script
Edit src/config.jsonc:
{
"notifications": {
"conclusionWebhook": {
"enabled": true,
"url": "https://discord.com/api/webhooks/123456789/abcdef-your-webhook-token"
}
}
}
That's it! You'll get a summary after each run.
📋 Example Summary
🎯 Microsoft Rewards Summary
📊 Accounts: 3 • 0 with issues
💎 Points: 15,230 → 16,890 (+1,660)
⏱️ Average Duration: 8m 32s
📈 Cumulative Runtime: 25m 36s
👤 user1@example.com
Points: 5,420 → 6,140 (+720)
Duration: 7m 23s
Status: ✅ Completed successfully
👤 user2@example.com
Points: 4,810 → 5,750 (+940)
Duration: 9m 41s
Status: ✅ Completed successfully
👤 user3@example.com
Points: 5,000 → 5,000 (+0)
Duration: 8m 32s
Status: ✅ Completed successfully
🎯 Advanced: Separate Channels
Use different webhooks for different notifications:
{
"notifications": {
"webhook": {
"enabled": true,
"url": "https://discord.com/api/webhooks/.../errors-channel"
},
"conclusionWebhook": {
"enabled": true,
"url": "https://discord.com/api/webhooks/.../summary-channel"
}
}
}
webhook— Real-time errors during executionconclusionWebhook— End-of-run summary
🛠️ Troubleshooting
| Problem | Solution |
|---|---|
| No message received | Check webhook URL is complete |
| "Invalid webhook" | Regenerate webhook in Discord |
| Partial data | Ensure script completed fully |
Test Webhook Manually
curl -X POST -H "Content-Type: application/json" -d '{"content":"Test message"}' "YOUR_WEBHOOK_URL"
📚 Next Steps
Want mobile alerts?
→ NTFY Push Notifications
Need detailed logs?
→ Diagnostics Guide