Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이유혁
/
OSS_Project_Chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
이유혁
2019-11-18 18:15:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
951754544d5e3b6237a62f64acc5b4fc95123d53
95175454
1 parent
572236bc
logic error fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
9517545
...
...
@@ -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
(
'메세지 혹은, 텍스트가 아닙니다.'
));
}
})
}
...
...
Please
register
or
login
to post a comment