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 13:34:28 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d944a588e6fdf0274f9a09c1263fdaaa34e628fd
d944a588
1 parent
ef009c9c
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
app.js
app.js
View file @
d944a58
...
...
@@ -105,17 +105,14 @@ async function handleEvent(event) {
};
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
console
.
log
(
options
);
var
data
=
Buffer
.
from
(
body
,
'base64'
).
toString
();
console
.
log
(
data
);
var
text
=
''
;
console
.
log
(
data
);
while
(
data
.
indexOf
(
'text\\'
)
!=-
1
)
{
data
=
data
.
substring
(
data
.
indexOf
(
'text\\'
)
+
9
);
text
+=
data
.
substring
(
0
,
data
.
indexOf
(
"\\"
))
+
" "
;
}
console
.
log
(
text
);
text
=
"나의모든날들"
;
console
.
log
(
text
);
var
url
=
"https://www.genie.co.kr/search/searchLyrics?query="
+
encodeURI
(
text
);
...
...
Please
register
or
login
to post a comment