김대욱

end

Showing 1 changed file with 6 additions and 3 deletions
...@@ -29,13 +29,16 @@ app.post('/hook', function (req, res) { ...@@ -29,13 +29,16 @@ app.post('/hook', function (req, res) {
29 var cmd = message.text; 29 var cmd = message.text;
30 30
31 if(cmd == "영어"){ 31 if(cmd == "영어"){
32 - transen(eventObj.replyToken, eventObj.message.text); 32 + var input = message.text;
33 + transen(eventObj.replyToken, input);
33 } 34 }
34 else if(cmd == "프랑스어"){ 35 else if(cmd == "프랑스어"){
35 - transfr(eventObj.replyToken, eventObj.message.text); 36 + var input = message.text;
37 + transfr(eventObj.replyToken, input);
36 } 38 }
37 else if(cmd == "일본어"){ 39 else if(cmd == "일본어"){
38 - transja(eventObj.replyToken, eventObj.message.text); 40 + var input = message.text;
41 + transja(eventObj.replyToken, input);
39 } 42 }
40 43
41 res.sendStatus(200); 44 res.sendStatus(200);
......