김대욱

shit2

Showing 1 changed file with 1 additions and 2 deletions
......@@ -14,11 +14,10 @@ const bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
var cmd;
app.get('/hook', function (req, res) {
var eventObj = req.body.events[0];
var message = eventObj.message;
cmd = message.text;
var cmd = message.text;
});
app.post('/hook', function (req, res) {
......