mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix pokemon stuff
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "51.2.0",
|
||||
"version": "51.2.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "XiaoBot.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user