나혜원

ud

......@@ -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, result).then(resolve).catch(reject);
client.replyMessage(event.replyToken, showlist).then(resolve).catch(reject);
});
}
......