Simple Telegram bot which uses Schedule KPI API and can show schedule for groups.
- Clone this repository
git clone https://github.com/kreslavskiy/Schedule-bot
- Install all necessary packages
npm install
- Create configuration file
.env file must be in following format:
DB_URL=
BOT_TOKEN=
Where DB_URL
is MongoDB URL and BOT_TOKEN
is Telegram token for bot (can be obtained here)
- Run
npm run start
- /timetable — lessons timetable
- /group <XX-XX> (XX-XX is name of the group) — link chat to group
- /today — schedule for today
- /tomorrow — schedule for tomorrow
- /week — schedule for week
- /nextweek — schedule for next week
- /left — show how much time is left untill the end of lesson/break