Python automation tool that monitors Discord chats in real-time and automatically logs bets/signals into a Google Sheets spreadsheet.
- Real-Time Monitoring: Listens to Discord channels 24/7.
- Smart Filter: Ignores common conversations and captures only messages with specific keywords (
e.g.,!bet,U$,Green). - Cloud Integration: Connects to the Google Sheets API to save data instantly.
- Structured Log: Logs Date, User, Message, and Channel.
flowchart TD
A[👤 Discord User] -->|Sends Message| B(🤖 Python Bot / Discord.py)
B --> C{Contains Keyword?}
C -- No --> D[❌ Ignore Message]
C -- Yes --> E[📝 Extract Data]
E --> F[🔌 Google Sheets API]
F --> G[(📊 Google Sheet)]
subgraph Bot Logic
B
C
D
E
end
style A fill:#5865F2,stroke:#333,stroke-width:2px,color:white
style G fill:#0F9D58,stroke:#333,stroke-width:2px,color:white
style B fill:#FFD700,stroke:#333,stroke-width:2px,color:black
- Python 3.12
- Discord.py (Async)
- Google Sheets API (gspread)
This repository contains the source code logic. API keys (creds.json and Tokens) were not included for security reasons.
- Python 3.12+
- A Google Cloud Platform account (for Sheets API)
- A Bot created in the Discord Developer Portal
- Clone the repository
git clone gh repo clone armando-desouza/botDiscord-Python
cd botDiscord-Python- Run
python bot_discord.pyFrancisco A. de Souza Python Developer & Data Scientist | Data Specialist
