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 21:55:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d9b08cc03435cf3ba117af48a61965a2f7e17dd
4d9b08cc
1 parent
d094f004
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app.js
app.js
View file @
4d9b08c
...
...
@@ -200,7 +200,7 @@ function handleEvent(event) {
};
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
var
data
=
JSON
.
stringify
(
JSON
.
parse
(
body
),
null
,
' '
);
var
data
=
JSON
.
stringify
(
body
);
console
.
log
(
data
);
var
text
=
''
;
while
(
data
.
indexOf
(
'text\\'
)
!=-
1
)
...
...
@@ -209,6 +209,7 @@ function handleEvent(event) {
text
+=
data
.
substring
(
0
,
data
.
indexOf
(
"\\"
))
+
" "
;
}
text
=
text
.
substring
(
text
.
length
/
10
+
1
,
text
.
length
/
8
+
2
);
text
.
replace
(
' '
,
''
);
console
.
log
(
text
);
var
url
=
"https://www.genie.co.kr/search/searchLyrics?query="
+
text
;
request
(
url
,
function
(
error
,
response
,
html
)
...
...
Please
register
or
login
to post a comment