Fix pokemon stuff

This commit is contained in:
Daniel Odendahl Jr
2017-11-01 13:25:50 +00:00
parent 4984318fc4
commit 884b79afea
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -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)) {
+1 -1
View File
@@ -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`);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "51.2.0",
"version": "51.2.1",
"description": "Your personal server companion.",
"main": "XiaoBot.js",
"scripts": {