Filter only the url and put it in a variable
ianmsfvenom opened this issue · comments
Ian Pablo commented
there is a way to just list the url and put it in a variable
José Michael commented
You can just use .url
.
Something like this:
const gis = require('g-i-s');
gis(msg.body.slice(4), searchResult);
function searchResult(error, results) {
console.log(results);
var url = results[randomNumber(10)].url;
}