Looking for a powerful way to connect GroupMe with email and other handy tools like weather, zmanim, currency conversion, stock lookup, and more? This Python script transforms your GroupMe group into a multipurpose command center—all via SMS.
Features
- Send and receive emails via SMS
- Zmanim lookup
- Live weather reports
- Currency conversion
- Stock market queries
- Optional AI chatbot support (with custom API key)
Some features require free API keys. See the notes below for setup instructions.
Getting Started
-
Download the Script
Download Python File -
Set Up GroupMe
-
Create or log into your GroupMe account.
-
Enable SMS mode for your profile.
-
Create a new group.
-
Go to the GroupMe Developers Page.
-
Click Get Access Token and save it.
-
Click Create Bot:
-
Choose your new group.
-
For the Callback URL, use:
https://yourusername.pythonanywhere.com/groupme -
Click Submit.
-
-
Copy the Group ID and Bot ID from the confirmation screen.
-
-
-
Edit the Script
-
Open the script you downloaded.
-
Near the top, enter your email and email password or App Password (Gmail requires 2-Step Verification to generate this).
- If you’re using another email provider, update the IMAP server and port as needed.
-
Scroll down to
BOT_MAP = {...}and replace the sample entries with your actual Group ID and Bot ID.
-
-
Optional: Enable Additional Features
- Some features (weather, AI chatbot, etc.) require free API keys.
- Look for the relevant API URLs in the script and register for free keys.
- Paste them into the appropriate fields in the script.
-
Deploy to PythonAnywhere
-
Create a free account at PythonAnywhere.
-
Go to the Files tab, create a new file named /home/yourusername/flask_app.py, and paste in the script content.
-
Open the Web tab and choose Manual Configuration.
-
Pick any Python version (e.g., 3.8).
-
Scroll to the WSGI configuration file and replace its content with:
import sys import os sys.path.insert(0, '/home/yourusername/') from flask_app import app as application
-
-
Save and close.
-
-
Install Dependencies
-
Open the Bash Console and run:
python3.8 -m pip install flask requests deep-translator(Replace
3.8with the version you selected earlier)
-
-
Final Step
- Go to the Web tab and click Reload Web App.
Done!
You now have a working GroupMe bot ready to handle SMS-based commands for email, zmanim, weather, and more.
Usage Notes
- Commands must start with a dash (
-) and have no space before the keyword.
Example:-zmanim 10952
| - zmanim 10952
(#monsey case
) - For a full list of available commands, send:
-help - AI integration (e.g., with Gemini or DeepSeek) is supported via API keys but is optional.
- This script is not production-grade. It was created for personal use and may have bugs. Feel free to improve it!
Feedback & Support
If you run into issues or have suggestions, feel free to post here. I’d love to hear your feedback and improve this project further.
credits: @flipphoneguy
