Hello, Trying to get iamge searcher for a bot,
Node stuff wont really work.
https://www.npmjs.com/package/google-images
trying to use that, but I'm unsure how to get the api and id,
I tried to do that, but it wont send anything
Node stuff wont really work.
https://www.npmjs.com/package/google-images
trying to use that, but I'm unsure how to get the api and id,
Code:
.then(images => {
let img = images[Math.floor(Math.random() * images.length)];
message.channel.send(img.thumbnail.url);
});
}
