김대욱

제발

Showing 1 changed file with 5 additions and 6 deletions
......@@ -34,12 +34,7 @@ app.post('/hook', function (req, res) {
rl.on('line', function(line) {
console.log(line);
rl.close();
}).on("close", function() {
process.exit();
});
if(line =="영어"){
transen(eventObj.replyToken, eventObj.message.text);
}
......@@ -50,6 +45,10 @@ app.post('/hook', function (req, res) {
transja(eventObj.replyToken, eventObj.message.text);
}
rl.close();
}).on("close", function() {
process.exit();
});
res.sendStatus(200);
......