mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Random Pokedex Entries
This commit is contained in:
@@ -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)];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user