Random Pokedex Entries

This commit is contained in:
Daniel Odendahl Jr
2017-07-29 23:45:38 +00:00
parent 84c04333c0
commit f09fadae76
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,6 +49,6 @@ module.exports = class PokedexCommand extends Command {
}
filter(arr) {
return arr.filter(entry => entry.language.name === 'en')[0];
return arr.filter(entry => entry.language.name === 'en')[Math.floor(Math.random() * arr.length)];
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "28.0.1",
"version": "28.0.2",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {