I've fiddled around with it and still can not get it to work. Also I have tried with a singular image and it worked without problem. Here's my code:
exports.run = (client, message, args) => {
var rands = ["./catboy/cb1.jpg","./catboy/cb2.jpg","./catboy/cb3.jpg","./catboy/cb4.jpg"];
var rand = [Math.floor(Math.random()*(rands.length))];
message.channel.send("rawr", rand);
}
Thanks.
Aucun commentaire:
Enregistrer un commentaire