박찬수

번호 고르기 기능 수정

Showing 1 changed file with 1 additions and 3 deletions
...@@ -24,6 +24,7 @@ var currentTeamID = 0; ...@@ -24,6 +24,7 @@ var currentTeamID = 0;
24 data.SetData(); 24 data.SetData();
25 25
26 var app = express(); 26 var app = express();
27 +
27 app.use(bodyParser.json()); 28 app.use(bodyParser.json());
28 29
29 app.post('/hook', function (req, res) { 30 app.post('/hook', function (req, res) {
...@@ -120,11 +121,8 @@ function SelectAPI(eventObj, commingMsg){ ...@@ -120,11 +121,8 @@ function SelectAPI(eventObj, commingMsg){
120 } 121 }
121 else{ // 팀명 입력 122 else{ // 팀명 입력
122 papago.TranslateKRtoEN(commingMsg, function(transedMsg){ 123 papago.TranslateKRtoEN(commingMsg, function(transedMsg){
123 - //Reply(eventObj, transedMsg);
124 - if(step == 0){
125 currentTeamID = data.SearchTeam(transedMsg); 124 currentTeamID = data.SearchTeam(transedMsg);
126 Reply(eventObj, SelectTeamInfoMessage()); 125 Reply(eventObj, SelectTeamInfoMessage());
127 - }
128 }); 126 });
129 } 127 }
130 step++; 128 step++;
......