Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -134,12 +134,12 @@ function handleEvent(event) { | ... | @@ -134,12 +134,12 @@ function handleEvent(event) { |
| 134 | 134 | ||
| 135 | request(options, function(error,result,body){ | 135 | request(options, function(error,result,body){ |
| 136 | if(error) throw new Error(error); | 136 | if(error) throw new Error(error); |
| 137 | - var videourl = { type: 'location', label: '관련 영상', title:'name',address:''}; | 137 | + var videourl = { type: 'text', text:''}; |
| 138 | 138 | ||
| 139 | var temp1 = body.split(':'); | 139 | var temp1 = body.split(':'); |
| 140 | - videourl.address += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11); | 140 | + videourl.text += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11); |
| 141 | 141 | ||
| 142 | - console.log(videourl.address); | 142 | + console.log(videourl.text); |
| 143 | client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject); | 143 | client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject); |
| 144 | }); | 144 | }); |
| 145 | }); | 145 | }); | ... | ... |
-
Please register or login to post a comment