Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.39 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.39 KB

lunch-bot

Kotlin 1.1 Build Status Heroku

Slack bot for handling food reservations at the office.

It's written in Kotlin and consumes Slack API through JBot and JSlack.

How to run it

Beforehand create a Slack bot in your team and get your token.

Deploy to Heroku

  1. Deploy
  2. Make sure you set a Heroku configuration variable with the key slackBotToken and your token as value.

Run locally

  1. Clone this repo.
  2. Execute
$ ./gradlew bootRun -DslackBotToken=[your-token-here]

You can also put your token in application.properties and avoid passing it through command line. However, be aware that if you push it to Github your token will be disabled for security reasons.

Run with Docker

$ docker pull cesdperez/lunch-bot:latest
$ docker run -p 8080:8080 -d -e "slackBotToken=[your-token-here]" cesdperez/lunch-bot