- Docker
- Set up env variables. All are required:
WEBHOOK_MAIN_URL
- webhook to slack for posting lunch menuesWEBHOOK_DEBUG_URL
- webhook to slack to posting errorsCRON
(default:0 10 * * 1-5
) - in default it will send every workday at 10:00 AMURL_BK
- url to Božská komedie menuURL_DC
- url to Di Carlo Lhotka menuURL_NK
- url to Na Kamýku menuURL_PP
- url to Pizzerie Pepino menuPATH_PDFTOTEXT
(default:/usr/bin/pdftotext
) - path topdftotext
executable.TIMEZONE
(default:Europe/Prague
)FOOTER
(default:Neručíme za věrohodnost údajů. Vždy zkontrolujte oficiální nabídku.
)BOT_NAME
(default:obědbot
)
- Download or build image
- Run it:
docker run -d --name eltodo-lunch-bot IMAGE_NAME
. And don't forget to set up environment variables. - You can start requestbin from docker-compose for testing webhooks.