A Telegram Bot for UNICT students aided at helping students find informations about ERSU services.
This bot allows you to get straight to your telegram chat:
- the menu for the next meal
- informations about ERSU's offices
Send '/start' to start it, '/help' to see a list of commands. Please note that the commands and their answers are in Italian.
To start testing this bot you need to get a Telegram Bot's token:
- Go to Telegram and search for @BotFather
- Start it using
/start
- Create a new bot using the
/newbot
command - Give it a name and a tag (the tag must end with
bot
) - Now copy the token it gives you
- Pip3
- Python3
version: '2'
services:
ersu-bot:
container_name:ersu-bot
image: ghcr.io/unict-dmi/ersu-bot
volumes:
- <your-settings.yaml>:/app/config/settings.yaml
- <your-ERSU_DB.db>:/app/data/ERSU_DB.db
restart: unless-stopped
To test the bot with docker compose on Windows follow these steps:
- Clone the repository
- Copy the existing
config/settings.yaml.dist
and rename it intoconfig/settings.yaml
- In
token
add your Telegram bot's token - Open the terminal on the cloned repository and run
docker build -t ersubot .
to build the new image - Next run
docker run -v "/c/Users/your/absolute/path/ERSU-Bot/config/settings.yaml":"/ersubot/config/settings.yaml" ersubot
To test it with Linux follow the steps above to the point 4) and:
- Run
$ docker run -v "/home/your/absolute/path/ERSU-Bot/config/settings.yaml":"/ersubot/config/settings.yaml" ersubot
To test the bot directly on your machine follow these steps:
- Clone this repository
- Copy the existing
config/settings.yaml.dist
and rename it intoconfig/settings.yaml
- In
token
add your Telegram bot's token - Run
$ python main.py
to start the bot