권은령

update app.js

Showing 1 changed file with 2 additions and 1 deletions
......@@ -122,6 +122,8 @@ function handleEvent(event)
{
// music list 출력
return new Promise(function(resolve, reject){
var result = { type: 'text', text:''};
var url="https://www.genie.co.kr/chart/top200";
request(url, function(error, response, html){
......@@ -146,7 +148,6 @@ function handleEvent(event)
}
});
var result = { type: 'text', text:''};
for(var i=0; i<songList.length; i++)
{
result.text+=i+1 + ". "+ songList[i].singer+" - "+songList[i].song+"\n";
......