From 884b79afea8135df696208f8d6ba42962573df36 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 1 Nov 2017 13:25:50 +0000 Subject: [PATCH] Fix pokemon stuff --- commands/games/whos-that-pokemon.js | 5 +++-- commands/search/pokedex.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/games/whos-that-pokemon.js b/commands/games/whos-that-pokemon.js index 8cb55ca7..53183415 100644 --- a/commands/games/whos-that-pokemon.js +++ b/commands/games/whos-that-pokemon.js @@ -20,7 +20,8 @@ module.exports = class WhosThatPokemonCommand extends Command { { key: 'hide', prompt: 'Do you want to silhouette the Pokémon\'s image?', - type: 'boolean' + type: 'boolean', + default: false } ] }); @@ -29,7 +30,7 @@ module.exports = class WhosThatPokemonCommand extends Command { } async run(msg, { hide }) { - const pokemon = Math.floor(Math.random() * 721) + 1; + const pokemon = Math.floor(Math.random() * 802) + 1; try { let data; if (!this.cache.has(pokemon)) { diff --git a/commands/search/pokedex.js b/commands/search/pokedex.js index 9ad1340a..06fe8f67 100644 --- a/commands/search/pokedex.js +++ b/commands/search/pokedex.js @@ -33,7 +33,7 @@ module.exports = class PokedexCommand extends Command { .setAuthor(`#${id} - ${filterPkmn(body.names).name}`, `https://www.serebii.net/pokedex-sm/icon/${id}.png`) .setURL(`https://www.serebii.net/pokedex-sm/${id}.shtml`) .setDescription(stripIndents` - **The ${filterPkmn(body.genera).genus} Pokémon** + **The ${filterPkmn(body.genera).genus}** ${filterPkmn(body.flavor_text_entries).flavor_text.replace(/\n|\f|\r/g, ' ')} `) .setThumbnail(`https://www.serebii.net/sunmoon/pokemon/${id}.png`); diff --git a/package.json b/package.json index 37339d46..ed08132a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "51.2.0", + "version": "51.2.1", "description": "Your personal server companion.", "main": "XiaoBot.js", "scripts": {