SaverioMonaco / BotMensaMazza

Telegram Bot to deliver daily the menu at Collegio Universitario D. Nicola Mazza

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Bot to deliver daily the menu at Collegio Universitario D. Nicola Mazza

Installation on NASSUZ

  1. Copy the file telegrambot.sh in /share/access_bot/botmensamazza
  2. Insert the Bot Token in telegrambot.sh
  3. Add telegrambot.sh on crontab:
  • Add to the file /etc/config/crontab the line: 0 8 * * * /share/access_bot/botmensamazza/telegrambot.sh
  • crontab /etc/config/crontab && /etc/init.d/crond.sh restart
    IMPORTANT: do not run crontab -e

Installation on a Linux Machine (with Python)

  1. Insert the Bot Token in telegrambot.py
  2. Add telegrambot.py on crontab:
  • crontab -e
  • 0 8 * * * python path/to/telegrambot.py

Installation on a Windows machine

  1. Insert the Bot Token in telegrambot.py
  2. Run scheduler.bat as automated task in Task Scheduler (check in scheduler.bat if paths are still correct)

About

Telegram Bot to deliver daily the menu at Collegio Universitario D. Nicola Mazza

License:Apache License 2.0


Languages

Language:Python 65.3%Language:Perl 17.0%Language:Shell 16.3%Language:Batchfile 1.4%