Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -15,7 +15,7 @@ var app = express(); | ... | @@ -15,7 +15,7 @@ var app = express(); |
15 | app.use(bodyParser.json()); | 15 | app.use(bodyParser.json()); |
16 | 16 | ||
17 | var cmd; | 17 | var cmd; |
18 | -app.post('/hook', function (req, res) { | 18 | +app.get('/hook', function (req, res) { |
19 | var eventObj = req.body.events[0]; | 19 | var eventObj = req.body.events[0]; |
20 | var message = eventObj.message; | 20 | var message = eventObj.message; |
21 | cmd = message.text; | 21 | cmd = message.text; | ... | ... |
-
Please register or login to post a comment