1Here is a Random Image URL for your Project:
2
3-> https://source.unsplash.com/user/c_v_r
4
5Change the size -> ex. https://source.unsplash.com/user/c_v_r/1600x900
6 https://source.unsplash.com/user/c_v_r/100x100
7
8ex.
9<img scr="https://source.unsplash.com/user/c_v_r" alt="Free unsplash image">
10
11This URL gives an Random Image in high and quality back!
12Use it for your Website all Photos are free to use !!
13or use it for any your App :-)
1case "pic":
2 if (!args[1]) return message.channel.send("Enter a title (Be VERY specific");
3 // pics was set equal to "https://www.reddit.com/r/pics.json" earlier
4 snekfetch.get(pics).then(r => {
5 let postTitle = args[1];
6 let img = r.preview.images[0].source.url;
7 let entry = r.find(post => post.title == postTitle);
8 let picture = new Discord.RichEmbed()
9 .setAuthor(entry.title)
10 .addField(entry)
11 .setImage(img);
12 message.channel.send(picture);
13 //message.channel.send(entry.preview.images[0].source.url);
14 });
15 break;
1 const [imageStatus, setImageStatus] = useState("");
2
3 const handleImageLoaded = () => {
4 setImageStatus(true)
5 }
6
7 const handleImageErrored = () => {
8 setImageStatus(false)
9 thumbUrl = "https://picsum.photos/200/300"
10 }
11
1int i = (int)(myArrayList.size() * Math.random()) //you can get the random index
2String url = myArrayList.remove(i), //then you can remove that variable from list
1{
2 "id": "0",
3 "author": "Alejandro Escamilla",
4 "width": 5616,
5 "height": 3744,
6 "url": "https://unsplash.com/...",
7 "download_url": "https://picsum.photos/..."
8}