An open API service indexing awesome lists of open source software.

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.

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