aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-27 11:53:37 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-27 11:53:37 +0200
commita03f63c9a7474af07e91e9770397e08e8964e6ad (patch)
tree8d5b398701b14cfb42c03b1089d20da81a453f6f /src/server
parente39cdc33d17eeea21016e5991c7d4e3af369c90f (diff)
Update slack bot
Diffstat (limited to 'src/server')
-rw-r--r--src/server/routes/slack.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/server/routes/slack.js b/src/server/routes/slack.js
index 8b6ba5a..ac38c9a 100644
--- a/src/server/routes/slack.js
+++ b/src/server/routes/slack.js
@@ -4,7 +4,14 @@ const router = express.Router()
router.all('/', function (req, res, next) {
res.json({
"response_type": "in_channel",
- "text": "Will be implemented soon™!"
+ "text": "Here is the schedule of _18561_",
+ "mrkdwn": true,
+ "attachments": [
+ {
+ "fallback": `https://beta.rooster.hetmml.nl/s/${req.body.text}`,
+ "image_url": `https://beta.rooster.hetmml.nl/get/s/${req.body.text}.png`
+ }
+ ]
})
})