Slack bot for handling food reservations at the office.
It's written in Kotlin and consumes Slack API through JBot and JSlack.
Beforehand create a Slack bot in your team and get your token.
- Make sure you set a Heroku configuration variable with the key
slackBotToken
and your token as value.
- Clone this repo.
- 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.
$ docker pull cesdperez/lunch-bot:latest
$ docker run -p 8080:8080 -d -e "slackBotToken=[your-token-here]" cesdperez/lunch-bot