Skip to content

Provide lunch menu information and vote for options via slack integration.

License

Notifications You must be signed in to change notification settings

cmikovits/lunchbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lunchbot

Latest Travis CI build status

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 :)

Installation

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

Configuration

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.

Docker

cd lunchbot
docker build -t lunchbot .
docker run -d --name lunchbot lunchbot

Tests

After cloning GIT repository run:

tox

Tox will create its own venv environment.

Usage

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.

Authors

lunchbot was written by lumbric.

About

Provide lunch menu information and vote for options via slack integration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.7%
  • Dockerfile 7.3%