Not hard: on('ready',()=>{
const imageList=[
"<a href="https://static.onecms.io/wp-content/uploads/sites/34/2018/05/12170411/cat-kitten-138468381.jpg" rel="nofollow">https://static.onecms.io/wp-content/uploads/sites/34/2018/05/12170411/cat-kitten-138468381.jpg</a>",
"<a href="https://globalnews.ca/wp-content/uploads/2016/09/kittens.jpg?quality=85&strip=all" rel="nofollow">https://globalnews.ca/wp-content/uploads/2016/09/kittens.jpg?quality=85&strip=all</a>",
"<a href="https://mk0nationaltodayijln.kinstacdn.com/wp-content/uploads/2020/07/kitten-day-640x514.jpg" rel="nofollow">https://mk0nationaltodayijln.kinstacdn.com/wp-content/uploads/2020/07/kitten-day-640x514.jpg</a>",
"<a href="https://media.wired.com/photos/5ed06ca9fbf7b2147038a8a9/16:9/w_2400,h_1350,c_limit/Gear-New-Pet-1168772154.jpg" rel="nofollow">https://media.wired.com/photos/5ed06ca9fbf7b2147038a8a9/16:9/w_2400,h_1350,c_limit/Gear-New-Pet-1168772154.jpg</a>",
"<a href="https://www.pethealthnetwork.com/sites/default/files/styles/large/public/kittens-in-basket.jpg?itok=7mZDIHOZ" rel="nofollow">https://www.pethealthnetwork.com/sites/default/files/styles/large/public/kittens-in-basket.jpg?itok=7mZDIHOZ</a>"
];
on('chat:message',msg=>{
if('api'===msg.type && /^!random-image(\b\s|$)/i.test(msg.content)){
let who = (getObj('player',msg.playerid)||{get:()=>'API'}).get('_displayname');
sendChat('',`<div><h3>${who}</h3><img src="${imageList[randomInteger(imageList.length)-1]}" /></div>`);
}
});
});
Run: !random-image You get: I pre-loaded it with 5 pictures of kittens because this is the internet, but you can adjust with whatever URLs you want. It will pick randomly from the number that are there.