node.js - How to set slack listener in nodejs? -


i tried outgoing web-hook.

app.post('/getmsg', function(req, res, next){     console.log(req.body);     var botpayload = {         text : "hello how r u?"     }     return res.status(`enter code here`200).json(botpayload); }) 

my requirement need listen slack messages nodejs


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -