mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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)];
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "28.0.1",
|
||||
"version": "28.0.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user