Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
권은령
2019-12-05 01:03:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
11bc6955b88b65ecfd9bf93be6d1cc9222dfea73
11bc6955
1 parent
07509d80
fixing error not detect lyrics
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app.js
app.js
View file @
11bc695
...
...
@@ -171,10 +171,6 @@ function handleEvent(event)
lyric
=
$
(
'#pLyrics > p'
).
text
();
lyric
=
lyric
.
substring
(
0
,
150
);
console
.
log
(
songList
[
userNum
].
song
);
console
.
log
(
lyric
);
});
return
new
Promise
(
function
(
resolve
,
reject
)
{
//언어 감지 option
...
...
@@ -185,6 +181,9 @@ function handleEvent(event)
headers
:
{
'X-Naver-Client-Id'
:
client_id
,
'X-Naver-Client-Secret'
:
client_secret
}
};
console
.
log
(
songList
[
userNum
].
song
);
console
.
log
(
lyric
);
//papago 언어 감지
request
.
post
(
detect_options
,
(
error
,
response
,
body
)
=>
{
...
...
@@ -239,6 +238,7 @@ function handleEvent(event)
}
});
});
});
}
else
{
...
...
Please
register
or
login
to post a comment