I want to grab random images from the url, but when I call the command in discord, it supplies the same image over and over. But when I restart the bot and run it again, the image changes but still plays that different images over and over again without any variety? I would highly appreciate any help
else if (message.content.startsWith(prefix + "randimg") && message.author != client.user) {
message.channel.send({embed: {
color: 0x0000FF,
author: {
name: client.user.username,
icon_url: client.user.avatarURL
},
title: "Random Image Test",
image: {
url: "https://source.unsplash.com/random",
},
description: "Random Image Generation"
},
currentTimestamp: new Date(),
footer: {
icon_url: client.user.avatarURL,
text: "2018 @ Canarado"
}
})
I thought perhaps it is the fact that its grabbing them from the same random img url over and over, but I wouldnt know how to go about changing that. thank you and I hope someone will be able to help.