이유혁

Merge branch 'develop' of ssh://khuhub.khu.ac.kr:12959/2015104204/OSS_Project_Chatbot into develop

Showing 1 changed file with 2 additions and 2 deletions
......@@ -53,13 +53,13 @@ const api_connect = (event) => {
return new Promise((resolve, reject) => {
if (event.type !== 'message' || event.message.type !== 'text'){
//언어 감지 option
reject(new Error('메세지 혹은, 텍스트가 아닙니다.'));
} else {
resolve({
url : languagedetect_api_url,
form : {'query': event.message.text},
headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret}
});
} else {
reject(new Error('메세지 혹은, 텍스트가 아닙니다.'));
}
})
}
......