diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-09-27 11:53:37 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-09-27 11:53:37 +0200 |
commit | a03f63c9a7474af07e91e9770397e08e8964e6ad (patch) | |
tree | 8d5b398701b14cfb42c03b1089d20da81a453f6f /src/server | |
parent | e39cdc33d17eeea21016e5991c7d4e3af369c90f (diff) |
Update slack bot
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/routes/slack.js | 9 |
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` + } + ] }) }) |