aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
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`
+ }
+ ]
})
})