mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Support new Pokemon in Who's that Pokemon (803-807)
This commit is contained in:
@@ -42,7 +42,7 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(msg, { hide }) {
|
async run(msg, { hide }) {
|
||||||
const pokemon = Math.floor(Math.random() * 802) + 1;
|
const pokemon = Math.floor(Math.random() * 807) + 1;
|
||||||
try {
|
try {
|
||||||
const data = await this.client.pokemon.fetch(pokemon.toString());
|
const data = await this.client.pokemon.fetch(pokemon.toString());
|
||||||
const names = data.names.map(name => name.name.toLowerCase());
|
const names = data.names.map(name => name.name.toLowerCase());
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "109.3.0",
|
"version": "109.3.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user