]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commit
Add last coffee pack button
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 12 Feb 2019 13:15:35 +0000 (14:15 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 12 Feb 2019 13:29:21 +0000 (14:29 +0100)
commit8af719922cabdd070bfd4ba2d9fdfef84c2594d7
tree9e6c12e4558629456ea9f62e12031bb816667233
parenta0504710a52ab38fab54cca874dd653462fb9ab6
Add last coffee pack button

When clicked, the message notifying Tonda about the lack of coffee is
sent to the Slack.

There must be `.config` file in `coffee-flask` folder. The `.config`
file is JSON formated. For this patch the following is needed:
```
{
        "coffeebot": {
                "url": "https://hooks.slack.com/services/..."
        }
}
```
app.py
templates/hello.html
templates/main.js