From a03f63c9a7474af07e91e9770397e08e8964e6ad Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 27 Sep 2017 11:53:37 +0200 Subject: Update slack bot --- src/server/routes/slack.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/server/routes') 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` + } + ] }) }) -- cgit v1.1