This is a Telegram bot for showing the university schedule, with a user-friendly interface and the use of third-party APIs (© ПП Політек-софт).
To run the bot, you need to install dependencies and configure some environment variables. Below are instructions on how to do this:
-
Clone the repository to your local computer:
git clone https://github.com/maks-oleksyuk/VNU-Rozklad-bot.git
-
Create an
.env
file in the root directory of the project and fill it according to the example specified in the.env.example
fileTOKEN=your_bot_token ADMIN_ID=1234567 API_IP=0.0.0.0 # and other, see .env.example
-
If all the variables are configured correctly, you can run the bot on Docker. To do this, you can execute the following commands.
make up
-
Import mariadb database. In order to import an existing database, you can place the
.sql
file in the./db-init
folder for automatic import when the container is started -
More detailed information can be obtained with the following command:
make help
This Telegram bot has the following commands:
start
- 🚀 Start the botnow
- 🔆 Current pairtoday
- ⬇️ Schedule for todaytomorrow
-⤵️ Schedule for tomorrowweek
- ⏬ Schedule for the weeknextweek
- ⏩ Schedule for next weekrooms
- 🚪Search for free audiencesset_date
- 📆 Schedule for the entered dateabout
- ℹ️ About the bothelp
- ❔ Helpcancel
- 🆑 Cancel action | Change request