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-06 00:23:03 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
26758cd3a19f3a52de11852fd263697275baf54e
26758cd3
2 parents
c778c553
684a7556
Merge branch 'master' of
ssh://khuhub.khu.ac.kr:12959/2018102214/LINEBOT
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
26758cd
...
...
@@ -125,7 +125,7 @@ function handleEvent(event) {
var
$
=
cheerio
.
load
(
html
);
lyric
=
$
(
'#pLyrics > p'
).
text
();
lyric
=
lyric
.
substring
(
0
,
15
0
);
lyric
=
lyric
.
substring
(
0
,
30
0
);
return
new
Promise
(
function
(
resolve
,
reject
)
{
...
...
@@ -222,7 +222,7 @@ function handleEvent(event) {
data
=
data
.
substring
(
data
.
indexOf
(
'text\\'
)
+
9
);
text
+=
data
.
substring
(
0
,
data
.
indexOf
(
"\\"
))
+
" "
;
}
text
=
text
.
substring
(
text
.
length
/
10
+
1
,
text
.
length
/
8
+
2
);
text
=
text
.
substring
(
text
.
length
/
10
+
1
,
text
.
length
/
8
+
10
);
text
=
text
.
replace
(
' '
,
''
);
text
=
text
.
substr
(
0
,
text
.
indexOf
(
' '
));
console
.
log
(
text
);
...
...
Please
register
or
login
to post a comment