A Telegram bot for managing work shifts, breaks, and administrative oversight.
- Start/end work shifts
- Manage breaks (lunch, smoke, restroom)
- Break time limits and warnings
- Admin notifications for violations
- Automatic shift end at 2 AM
-
Create a
.env
file from.env.example
:cp .env.example .env
-
Update
.env
with your:- Telegram Bot Token (from @BotFather)
- Admin user IDs (comma-separated)
-
Install dependencies:
pip install -r requirements.txt
-
Run the bot:
python main.py
/start
- Show help message/start_shift
- Start work shift/end_shift
- End work shift/break <type>
- Start break (lunch/smoke/restroom)/end_break
- End current break
- Lunch: 30 minutes
- Smoke: 10 minutes
- Restroom: 5 minutes
Exceeding these limits triggers admin notifications.