Provide lunch menu information and vote for options via slack integration.
Note that this is mostly a toy project to test all the tooling required for a Python project. So don't feel tempted to question the usefulness of the code :)
git clone https://github.com/lumbric/lunchbot.git
cd lunchbot
virtualenv -p python3 env && source env/bin/activate # optional
pip3 install -r requirements.txt
python3 setup.py install
Add a Slack API token for your bot to secrets.yml:
slack_bot_token: 'xoxb-...'
Note that this should be a bot user token, starting with xoxb-, otherwise the reactions will be added using your Slack user and you won't be able to vote using reactions.
Follow the Slack instructions to create the bot user.
cd lunchbot
docker build -t lunchbot .
docker run -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone -d --name lunchbot lunchbot
After cloning GIT repository run:
tox
Tox will create its own venv environment.
Run the command
lunchbot
...to post the daily Mensa menu to your slack channel. There are no additional options yet. The bot will add each poll option as reaction, so other users can easily click and add one vote.
lunchbot was written by lumbric.