김대욱

wish7

Showing 1 changed file with 1 additions and 0 deletions
...@@ -16,6 +16,7 @@ app.use(bodyParser.json()); ...@@ -16,6 +16,7 @@ app.use(bodyParser.json());
16 16
17 var cmd; 17 var cmd;
18 app.post('/hook', function (req, res) { 18 app.post('/hook', function (req, res) {
19 + var eventObj = req.body.events[0];
19 var message = eventObj.message; 20 var message = eventObj.message;
20 cmd = message.text; 21 cmd = message.text;
21 }); 22 });
......