Huge Array Change

This commit is contained in:
dragonfire535
2017-03-13 21:59:25 -04:00
parent b3d61772e6
commit 46f9e8e639
20 changed files with 73 additions and 23 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ class RandomCat extends commando.Command {
if(!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return;
}
console.log("[Command] " + message.content);
let cat = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg", "10.jpg", "11.jpeg", "12.jpg", "13.jpeg", "14.png", "15.jpg", "16.jpg", "17.jpg", "18.jpg", "19.jpg", "20.jpg"][Math.floor(Math.random() * 20)];
let cat = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg", "10.jpg", "11.jpeg", "12.jpg", "13.jpeg", "14.png", "15.jpg", "16.jpg", "17.jpg", "18.jpg", "19.jpg", "20.jpg"]
cat = cat[Math.floor(Math.random() * cat.length)];
message.channel.sendFile("./images/Cat" + cat);
}
}