A simple telegram bot to get information on Rome's public transport.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bot
tests
.gitignore
README.md
build.sh
requirements.txt
trasportiromabot.service

README.md

TrasportiRomaBot

It's made with python3.

Installation

Get an ATAC api key from here, and add it to your environment:

export ATAC_API_KEY=your-api-key

Get a Telegram api key from @BotFather:

export TELEGRAM_API_KEY=your-api-key

Run build.sh to download the requirements in a new virtualenv:

chmod +x build.sh
./build.sh

Load the new virtualenv:

source venv/bin/activate

and finally, run main.py:

python3 main.py

Soft TODO:

Long TODO:

  • Aggiungere possibilità di cercare percorso
  • Add favorite stops.

Very long todo:

  • Add a tutorial: message shown only the first time the users chat with the bot.

VERY VERY VERY Long todo:

  • Groups support

Abandoned:

  • NLP interface: Using api.ai. I think it's easier to use the telegram's commands for this use case.