Not hard:
on('ready',()=>{
const imageList=[
"https://static.onecms.io/wp-content/uploads/sites/34/2018/05/12170411/cat-kitten-138468381.jpg",
"https://globalnews.ca/wp-content/uploads/2016/09/kittens.jpg?quality=85&strip=all",
"https://mk0nationaltodayijln.kinstacdn.com/wp-content/uploads/2020/07/kitten-day-640x514.jpg",
"https://media.wired.com/photos/5ed06ca9fbf7b2147038a8a9/16:9/w_2400,h_1350,c_limit/Gear-New-Pet-1168772154.jpg",
"https://www.pethealthnetwork.com/sites/default/files/styles/large/public/kittens-in-basket.jpg?itok=7mZDIHOZ"
];
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.