https://github.com/swarnabese12/discord-bot
A Rust-based bot that monitors your Gmail inbox for important emails and posts them to a Discord channel via a webhook. Built using OAuth2, Tokio, Warp, and Reqwest for secure and asynchronous email monitoring.
https://github.com/swarnabese12/discord-bot
discord-webhook email-monitoring oauth2 reqwest rust tokio warp
Last synced: 7 months ago
JSON representation
A Rust-based bot that monitors your Gmail inbox for important emails and posts them to a Discord channel via a webhook. Built using OAuth2, Tokio, Warp, and Reqwest for secure and asynchronous email monitoring.
- Host: GitHub
- URL: https://github.com/swarnabese12/discord-bot
- Owner: swarnabese12
- Created: 2025-07-11T05:49:39.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-11T06:00:54.000Z (11 months ago)
- Last Synced: 2025-07-11T09:59:47.794Z (11 months ago)
- Topics: discord-webhook, email-monitoring, oauth2, reqwest, rust, tokio, warp
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📬 Gmail to Discord Bot (Rust)
A Rust-based bot that monitors your Gmail inbox and automatically posts important emails to a Discord channel via a webhook. Designed with async capabilities using `tokio`, OAuth2 authentication, and secret-safe handling with `.env` configuration.
## ✨ Features
- 🔒 Secure OAuth2-based Gmail access
- 🔔 Auto-detect and notify important emails in real-time
- 📎 Filters emails based on sensitive keywords (e.g., payment, verification)
- 📤 Sends formatted email alerts directly to a Discord webhook
- ⚙️ Built with `tokio`, `reqwest`, `warp`, and `dotenvy`
## 🛠️ Environment Setup (.env)
- Create a `.env` file in the project root with the following keys:
- CLIENT_ID=your-google-client-id
- CLIENT_SECRET=your-google-client-secret
- REDIRECT_URI=http://localhost:3000/oauth2/gmail-bot
- DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/your-webhook-id