generated from technolyceum/ai7-m3
Initial commit
This commit is contained in:
60
scheduler_bots/README.md
Normal file
60
scheduler_bots/README.md
Normal file
@@ -0,0 +1,60 @@
|
||||
# Scheduler Bots
|
||||
|
||||
This directory contains Telegram scheduler bots that help manage schedules.
|
||||
|
||||
## Setup Instructions
|
||||
|
||||
1. Create a virtual environment:
|
||||
```
|
||||
python -m venv venv
|
||||
```
|
||||
|
||||
2. Activate the virtual environment:
|
||||
- On macOS/Linux: `source venv/bin/activate`
|
||||
- On Windows: `venv\Scripts\activate`
|
||||
|
||||
3. Install required packages:
|
||||
```
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Running the bots
|
||||
|
||||
### Method 1: Using Python command (Recommended)
|
||||
```
|
||||
python telegram_scheduler_v1.py
|
||||
```
|
||||
or
|
||||
```
|
||||
python telegram_scheduler_v2.py
|
||||
```
|
||||
|
||||
### Method 2: Direct execution
|
||||
Make sure you've activated the virtual environment first:
|
||||
```
|
||||
source venv/bin/activate # On macOS/Linux
|
||||
./telegram_scheduler_v1.py
|
||||
```
|
||||
or
|
||||
```
|
||||
./telegram_scheduler_v2.py
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
If you encounter "pandas library not found" error:
|
||||
|
||||
1. Make sure you've activated the virtual environment:
|
||||
```
|
||||
source venv/bin/activate
|
||||
```
|
||||
|
||||
2. Verify pandas is installed:
|
||||
```
|
||||
pip list | grep pandas
|
||||
```
|
||||
|
||||
3. If not installed, install requirements:
|
||||
```
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
Reference in New Issue
Block a user