Skip to content

stetat/ToDo-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run the bot?**

Make sure you have python 3.9.6+ installed

Clone this repo: git clone https://github.com/stetat/ToDo-bot.git

Get into a newly cloned directory: cd ToDo-bot

Create a virtual environment python -m venv .venv

Activate virtual environment on Mac/Linux: source .venv/bin/activate on Windows (PowerShell terminal): .venv\Scripts\Activate.ps1

Install dependencies: pip install -r requirements.txt

Create a new file called .env, inside that file, add two variables: PERPLEXITY_API_KEY="YOUR PERPLEXITY API" BOT_TOKEN="YOUR TELEGRAM BOT TOKEN"

Open a new terminal (let's call it t2, whereas main terminal is t1) (Both t1 and t2 should have the virtual environment open)

In t1 write this command, to start fastApi server: fastapi dev main.py

In t2 write this command, to start Telegram bot logic: python tg_bot.py

You can now move to your telegram bot and interact with it


What can this bot do?

1. Create a new task
2. Show all users' tasks
3. Update the status for users' tasks
4. Delete tasks in bulk
5. Show done/incomplete statistics for the user
6. Get AI advice for any task ( limited by 5 requests per user per day )

About

ToDo telegram bot. FastAPI for backend logic and Aiogram for telegram bot design

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages