Skip to content

Telegram Bot that provides infos about "Politecnico di Milano"

Notifications You must be signed in to change notification settings

flaprimo/UniversityBot

Repository files navigation

UniversityBot

UnivesityBot is the bot that ease your life at Politecnico di Milano. Use it to find information about halls, free classrooms and useful links.

Features

Available commands

  • shows useful links
  • gets classroom information (building, photo, notes, directions)
  • searches for free classrooms

Technologies

  • file cache requests for api calls for faster response
  • deployment using docker
  • multi-language support through the gettext standard
  • use of the tested and reliable Python Telegram Bot framework

Credits

Installation instructions

  1. Install Docker CE edition (including post-installation instructions)
  2. clone this repository in /opt/ or wherever you want
  3. If you cloned in /opt/ just run docker_install.sh and you're done (if you stop the container just run docker_run.sh to restart it), else continue reading
  4. open a terminal into project folder and build the docker image with docker build -t universitybot .
  5. run the docker image with: docker run -d --name=universitybot -v installdir/logs:/opt/UniversityBot/logs -v installdir/cache:/opt/UniversityBot/cache -v installdir/config:/opt/UniversityBot/config --restart=on-failure:10 universitybot

TODO

  • implement inline
  • implement add arguments to commands
  • implement occupation, returns html of the occupation of the day
  • implement room occupation, returns classroom occupation based on the day, https://github.com/jarrekk/imgkit
  • webhook
  • run docker image on travis
  • add more translations (Spanish, German, Dutch, Arabic, Portuguese and Korean)
  • update framework to latest version

About

Telegram Bot that provides infos about "Politecnico di Milano"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages