Slide 92
Slide 92 text
? ?
module.exports.handleDiscourse = (event, context, callback) => {
const post = JSON.parse(event.body).post;
if (post && event.headers['X-Discourse-Event'] !== 'post_edited') {
const {
name, topic_title, topic_slug, topic_id, post_number
} = post;
// send it to Slack
// ...
// ...
}
};
Serverless orchestration
Slack