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:05:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d56a7730ffbd3e3043d6fc79157524a0c433de0d
d56a7730
1 parent
3f79d179
ud
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
concert.js
concert.js
View file @
d56a773
...
...
@@ -90,7 +90,7 @@ function handleEvent(event) {
// ignore non-text-message event
return
Promise
.
resolve
(
null
);
}
else
if
(
event
.
message
.
text
.
substring
(
0
,
6
)
==
'콘서트 보기'
){
else
if
(
event
.
message
.
text
.
substring
(
0
,
6
)
==
'콘서트 보기'
||
event
.
message
.
text
.
substring
(
0
,
5
)
==
'콘서트보기'
){
return
new
Promise
(
function
(
resolve
,
reject
)
{
...
...
@@ -100,9 +100,8 @@ function handleEvent(event) {
showlist
.
text
+=
i
+
1
+
". "
+
concert_list
[
i
]
+
"\n"
;
}
console
.
log
(
showlist
.
text
);
var
result
=
{
type
:
'text'
,
text
:
showlist
.
text
}
client
.
replyMessage
(
event
.
replyToken
,
resul
t
).
then
(
resolve
).
catch
(
reject
);
client
.
replyMessage
(
event
.
replyToken
,
showlis
t
).
then
(
resolve
).
catch
(
reject
);
});
}
...
...
Please
register
or
login
to post a comment