LifeBrain is a Telegram productivity assistant built using python-telegram-bot. It helps users with calculations, weather updates, news, task reminders, and simple natural chat — without paid AI APIs.
This project is designed to be:
- Free & offline-friendly
- Easy to run locally
- Suitable for academic projects
- Safe for public GitHub sharing
- Solve math expressions
- Get weather by city
- Fetch latest news
- Add, view, and delete tasks
- Task reminders
- Daily summary
- Simple natural replies (rule-based, no OpenAI)
bot/
├── main.py
├── requirements.txt
├── .env.example
├── utils/
│ ├── solver.py
│ ├── translator.py
│ ├── weather.py
│ ├── news.py
│ ├── db.py
│ ├── memory.py
│ └── daily_summary.py
- Python 3.10 or 3.11 ( Python 3.12 may cause dependency issues)
- Telegram account
git clone https://github.com/ramkumar27072006/bot.git
cd botpython -m venv venvActivate it:
Windows
venv\Scripts\activateLinux / macOS
source venv/bin/activatepip install -r requirements.txt-
Open Telegram
-
Search @BotFather
-
Run:
/start /newbot -
Copy the BOT TOKEN
Create a file named .env in the project root.
TELEGRAM_BOT_TOKEN=PASTE_YOUR_BOT_TOKEN_HERENever upload .env to GitHub
python main.pyYou should see:
LifeBrain Bot running (free version)...
| Command | Description |
|---|---|
/start |
Start the bot |
/help |
Show help menu |
/solve 25*(4/3) |
Solve math expression |
/weather chennai |
Get weather |
/news ai |
Get news |
/addtask drink water 14:00 |
Add task |
/showtasks |
View tasks |
/deletetask <id> |
Delete a task |
/daily 07:00 |
Daily summary |
You can also type normal messages for simple chat replies.
Tasks can be deleted manually using:
/deletetask <task_id>
(Task IDs are shown in /showtasks)
- No OpenAI / paid APIs used
- Bot must be running locally or on a server
- Stopping the terminal will stop the bot
- Best tested on Python 3.10 / 3.11
You can deploy this bot on:
- Railway
- Render
- AWS EC2
- DigitalOcean
- Raspberry Pi.
(Local PC works fine for college projects.)
Ramkumar R B.Tech AI & Data Science Academic / Learning Project
This project is open-source and intended for educational use.