김대욱

제발16

Showing 1 changed file with 0 additions and 18 deletions
......@@ -48,44 +48,26 @@ app.post('/hook', function (req, res) {
var cmd = eventObj.message.text;
if(cmd == "영어"){
app.post('/hook', function (req, res) {
var eventObj = req.body.events[0];
var source = eventObj.source;
var message = eventObj.message;
transen(eventObj.replyToken, eventObj.message.text);
res.sendStatus(200);
});
}
else if(cmd == "프랑스어"){
app.post('/hook', function (req, res) {
var eventObj = req.body.events[0];
var source = eventObj.source;
var message = eventObj.message;
transfr(eventObj.replyToken, eventObj.message.text);
res.sendStatus(200);
});
}
else if(cmd == "일본어"){
app.post('/hook', function (req, res) {
var eventObj = req.body.events[0];
var source = eventObj.source;
var message = eventObj.message;
transja(eventObj.replyToken, eventObj.message.text);
res.sendStatus(200);
});
}
res.sendStatus(200);
......