mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 17:06:15 +00:00
- Updated index.md to improve structure and navigation, added new guides for getting started and feature explanations. - Created notifications.md detailing setup for Discord webhooks and NTFY mobile alerts, including examples and troubleshooting tips. - Added troubleshooting.md covering common issues, installation problems, login issues, account problems, browser issues, configuration problems, performance issues, and diagnostic log retrieval.
7.4 KiB
7.4 KiB
🔔 Notifications
Get alerts when the bot completes its run
📋 Table of Contents
💬 Discord Webhooks
Get detailed run summaries sent to your Discord server.
Setup
1. Create Webhook in Discord
- Open your Discord server
- Go to Server Settings → Integrations → Webhooks
- Click New Webhook
- Name it (e.g., "Microsoft Rewards Bot")
- Choose a channel
- Click Copy Webhook URL
2. Add to Configuration
Edit src/config.jsonc:
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "https://discord.com/api/webhooks/123456789/AbCdEfGhIjKlMnOpQrStUvWxYz"
}
}
What You'll Receive
Rich embeds with:
- ✅ Total points earned
- 📊 Per-account breakdown
- ⏱️ Run duration
- 🎯 Completion status
- ⚠️ Errors and warnings
Example message:
🎉 Microsoft Rewards Summary
Total Points: 450
Duration: 12 minutes
Accounts Processed: 3/3
✅ account1@outlook.com: 150 points (45s)
✅ account2@outlook.com: 150 points (48s)
✅ account3@outlook.com: 150 points (42s)
Advanced Options
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "YOUR_WEBHOOK_URL",
"username": "Rewards Bot", // Custom bot name
"avatar": "https://example.com/avatar.png", // Custom avatar
"color": 3447003, // Embed color (decimal)
"onlyOnError": false, // Send only when errors occur
"pingOnError": true // @mention on errors
}
}
Multiple Webhooks
Send to different channels:
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "WEBHOOK_FOR_SUCCESS",
"errorWebhookUrl": "WEBHOOK_FOR_ERRORS" // Separate channel for errors
}
}
📱 NTFY Mobile Alerts
Get instant push notifications on your phone with ntfy.sh.
Setup
1. Install NTFY App
- Android: Google Play Store
- iOS: App Store
- Web: https://ntfy.sh/app
2. Choose a Topic
Pick a unique topic name (acts as your channel):
- Examples:
rewards-bot-john,msrewards-12345 - Keep it secret to avoid spam!
3. Subscribe in App
- Open NTFY app
- Tap + or Subscribe
- Enter your topic name
- Save
4. Add to Configuration
Edit src/config.jsonc:
{
"ntfy": {
"enabled": true,
"topic": "your-unique-topic-name", // From step 2
"priority": 3, // 1-5 (3 = default, 5 = urgent)
"tags": ["robot", "money"] // Optional emojis
}
}
What You'll Receive
Simple push notifications:
- ✅ Bot completion status
- 📊 Total points earned
- ⚠️ Error alerts
- ⏱️ Run duration
Example notification:
🤖 Rewards Bot Complete
✅ 3 accounts processed
💰 450 points earned
⏱️ 12 minutes
Priority Levels
| Priority | Behavior | When to Use |
|---|---|---|
| 1 | Min | Background only, no sound |
| 2 | Low | Vibrate only |
| 3 | Default | Normal notification |
| 4 | High | Makes sound |
| 5 | Max | Critical alert, repeats |
Recommended: Priority 3 or 4 for most use cases.
Custom NTFY Server
Using your own NTFY server:
{
"ntfy": {
"enabled": true,
"server": "https://ntfy.yourdomain.com", // Your server
"topic": "your-topic",
"priority": 3
}
}
Advanced Options
{
"ntfy": {
"enabled": true,
"topic": "your-topic",
"priority": 4,
"tags": ["robot", "chart_increasing"], // Emojis in notification
"title": "Rewards Bot", // Custom title
"clickUrl": "https://rewards.bing.com", // URL to open on click
"attachUrl": "https://example.com/image.png", // Attach image
"onlyOnError": false, // Send only on errors
"email": "you@example.com" // Also send email
}
}
Available Tags (Emojis)
Common ones:
robot,money,chart,check,warning,fire- Full list: https://ntfy.sh/docs/emojis/
⚖️ Comparison
| Feature | Discord Webhooks | NTFY |
|---|---|---|
| Setup | Medium (need server) | Easy (just install app) |
| Detail | Rich embeds with full stats | Simple text notifications |
| Speed | Fast | Instant |
| Mobile | Requires Discord app | Dedicated notifications app |
| Free | ✅ Yes | ✅ Yes |
| Privacy | Data goes to Discord | Self-hostable |
| Best For | Detailed reports | Quick alerts |
Recommendation: Use both!
- Discord for detailed daily reports
- NTFY for instant mobile alerts
📝 Examples
Both Enabled (Recommended)
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "YOUR_DISCORD_WEBHOOK"
},
"ntfy": {
"enabled": true,
"topic": "your-unique-topic",
"priority": 3,
"tags": ["robot", "money"]
}
}
Errors Only
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "YOUR_DISCORD_WEBHOOK",
"onlyOnError": true // Only send when something goes wrong
},
"ntfy": {
"enabled": true,
"topic": "your-topic",
"priority": 5, // Max priority for errors
"onlyOnError": true
}
}
Different Priorities for Success/Error
{
"ntfy": {
"enabled": true,
"topic": "your-topic",
"priority": 3, // Normal for success
"priorityOnError": 5, // Urgent for errors
"tags": ["robot"],
"tagsOnError": ["warning", "fire"] // Different emoji on error
}
}
Custom Formatting
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "YOUR_WEBHOOK",
"username": "🤖 Rewards Bot",
"color": 3066993, // Green color (decimal)
"footer": "Powered by Microsoft Rewards Bot",
"timestamp": true // Show timestamp
}
}
🔧 Troubleshooting
Discord webhook not working
Check:
- Webhook URL is correct (starts with
https://discord.com/api/webhooks/) - Webhook still exists in Discord server settings
- Bot has permissions to send webhooks
- Check console for error messages
Test manually:
curl -X POST "YOUR_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{"content": "Test message"}'
NTFY notifications not arriving
Check:
- Topic name is correct (case-sensitive!)
- Subscribed in app with same topic
- App has notification permissions
- Internet connection is stable
- Not using a banned/common topic name
Test manually:
curl -d "Test notification" "https://ntfy.sh/your-topic"
Or visit in browser: https://ntfy.sh/your-topic
Rate limiting
If sending too many notifications:
{
"conclusionWebhook": {
"enabled": true,
"webhookUrl": "YOUR_WEBHOOK",
"debounceMs": 5000 // Wait 5s between messages
}
}
🆘 Need Help?
- 💬 Discord Community — Get support
- 📖 Configuration Guide — All config options
- 🐛 Report Issue — Found a bug?