김대욱

제발

Showing 1 changed file with 5 additions and 6 deletions
...@@ -34,12 +34,7 @@ app.post('/hook', function (req, res) { ...@@ -34,12 +34,7 @@ app.post('/hook', function (req, res) {
34 34
35 rl.on('line', function(line) { 35 rl.on('line', function(line) {
36 console.log(line); 36 console.log(line);
37 - 37 +
38 - rl.close();
39 - }).on("close", function() {
40 - process.exit();
41 - });
42 -
43 if(line =="영어"){ 38 if(line =="영어"){
44 transen(eventObj.replyToken, eventObj.message.text); 39 transen(eventObj.replyToken, eventObj.message.text);
45 } 40 }
...@@ -50,6 +45,10 @@ app.post('/hook', function (req, res) { ...@@ -50,6 +45,10 @@ app.post('/hook', function (req, res) {
50 transja(eventObj.replyToken, eventObj.message.text); 45 transja(eventObj.replyToken, eventObj.message.text);
51 } 46 }
52 47
48 + rl.close();
49 + }).on("close", function() {
50 + process.exit();
51 + });
53 52
54 53
55 res.sendStatus(200); 54 res.sendStatus(200);
......