]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/blobdiff - templates/main.js
Add last coffee pack button
[coffee/coffee-flask.git] / templates / main.js
index 8135983b75c8bdbee3570c81e2738047564b3867..b28b8263137c036ea8e5d9a3dfb4731913fd20a3 100644 (file)
@@ -205,3 +205,8 @@ function addCoffee(flavor, time = new Date()) {
 function sendLog(json) {
     ajax("POST", "log", json, "log");
 }
+
+function tellCoffeebot(what)
+{
+    ajax("POST", "tellCoffeebot", JSON.stringify({text: what}), "log");
+}