Showing
1 changed file
with
1 additions
and
14 deletions
... | @@ -48,25 +48,12 @@ app.post('/hook', function (req, res) { | ... | @@ -48,25 +48,12 @@ app.post('/hook', function (req, res) { |
48 | var cmd = eventObj.message.text; | 48 | var cmd = eventObj.message.text; |
49 | 49 | ||
50 | if(cmd == "영어"){ | 50 | if(cmd == "영어"){ |
51 | - var eventObj = req.body.events[0]; | 51 | + transen(eventObj.replyToken, eventObj.message.text); |
52 | - var source = eventObj.source; | ||
53 | - var message = eventObj.message; | ||
54 | - | ||
55 | - transen(eventObj.replyToken, eventObj.message.text); | ||
56 | - | ||
57 | } | 52 | } |
58 | else if(cmd == "프랑스어"){ | 53 | else if(cmd == "프랑스어"){ |
59 | - var eventObj = req.body.events[0]; | ||
60 | - var source = eventObj.source; | ||
61 | - var message = eventObj.message; | ||
62 | - | ||
63 | transfr(eventObj.replyToken, eventObj.message.text); | 54 | transfr(eventObj.replyToken, eventObj.message.text); |
64 | } | 55 | } |
65 | else if(cmd == "일본어"){ | 56 | else if(cmd == "일본어"){ |
66 | - var eventObj = req.body.events[0]; | ||
67 | - var source = eventObj.source; | ||
68 | - var message = eventObj.message; | ||
69 | - | ||
70 | transja(eventObj.replyToken, eventObj.message.text); | 57 | transja(eventObj.replyToken, eventObj.message.text); |
71 | } | 58 | } |
72 | 59 | ... | ... |
-
Please register or login to post a comment