mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Random Pokedex Entries
This commit is contained in:
@@ -49,6 +49,6 @@ module.exports = class PokedexCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
filter(arr) {
|
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",
|
"name": "xiaobot",
|
||||||
"version": "28.0.1",
|
"version": "28.0.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user