박찬수

번호 고르기 기능 수정

Showing 1 changed file with 3 additions and 5 deletions
......@@ -24,6 +24,7 @@ var currentTeamID = 0;
data.SetData();
var app = express();
app.use(bodyParser.json());
app.post('/hook', function (req, res) {
......@@ -120,11 +121,8 @@ function SelectAPI(eventObj, commingMsg){
}
else{ // 팀명 입력
papago.TranslateKRtoEN(commingMsg, function(transedMsg){
//Reply(eventObj, transedMsg);
if(step == 0){
currentTeamID = data.SearchTeam(transedMsg);
Reply(eventObj, SelectTeamInfoMessage());
}
currentTeamID = data.SearchTeam(transedMsg);
Reply(eventObj, SelectTeamInfoMessage());
});
}
step++;
......