Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -90,7 +90,7 @@ function handleEvent(event) { | ... | @@ -90,7 +90,7 @@ function handleEvent(event) { |
90 | // ignore non-text-message event | 90 | // ignore non-text-message event |
91 | return Promise.resolve(null); | 91 | return Promise.resolve(null); |
92 | } | 92 | } |
93 | - else if(event.message.text.substring(0,6)=='콘서트 보기'){ | 93 | + else if(event.message.text.substring(0,6)=='콘서트 보기'||event.message.text.substring(0,5)=='콘서트보기'){ |
94 | 94 | ||
95 | return new Promise(function(resolve, reject) | 95 | return new Promise(function(resolve, reject) |
96 | { | 96 | { |
... | @@ -100,9 +100,8 @@ function handleEvent(event) { | ... | @@ -100,9 +100,8 @@ function handleEvent(event) { |
100 | showlist.text+=i+1 + ". " + concert_list[i] + "\n"; | 100 | showlist.text+=i+1 + ". " + concert_list[i] + "\n"; |
101 | } | 101 | } |
102 | console.log(showlist.text); | 102 | console.log(showlist.text); |
103 | - var result={type:'text',text:showlist.text} | ||
104 | 103 | ||
105 | - client.replyMessage(event.replyToken, result).then(resolve).catch(reject); | 104 | + client.replyMessage(event.replyToken, showlist).then(resolve).catch(reject); |
106 | }); | 105 | }); |
107 | 106 | ||
108 | } | 107 | } | ... | ... |
-
Please register or login to post a comment