mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Fix
This commit is contained in:
@@ -1503,6 +1503,9 @@ here.
|
|||||||
* poem ([API](https://github.com/thundercomb/poetrydb/blob/master/README.md))
|
* poem ([API](https://github.com/thundercomb/poetrydb/blob/master/README.md))
|
||||||
- [Pokemon Fusion](https://pokemon.alexonsager.net/)
|
- [Pokemon Fusion](https://pokemon.alexonsager.net/)
|
||||||
* pokemon-fusion (Images)
|
* pokemon-fusion (Images)
|
||||||
|
- [Pokemoncries.com](https://pokemoncries.com/)
|
||||||
|
* pokedex (Cry Sound Effects)
|
||||||
|
* whos-that-pokemon (Cry Sound Effects)
|
||||||
- [PokéAPI](https://pokeapi.co/)
|
- [PokéAPI](https://pokeapi.co/)
|
||||||
* pokedex (API)
|
* pokedex (API)
|
||||||
* whos-that-pokemon (API)
|
* whos-that-pokemon (API)
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module.exports = class JeopardyCommand extends Command {
|
|||||||
max: 1,
|
max: 1,
|
||||||
time: 30000
|
time: 30000
|
||||||
});
|
});
|
||||||
if (connection) connection.dispatcher.end();
|
if (connection && connection.dispatcher) connection.dispatcher.end();
|
||||||
const answer = question.answer.replace(/<\/?i>/gi, '*');
|
const answer = question.answer.replace(/<\/?i>/gi, '*');
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
if (!msgs.size) return msg.reply(`Time's up, the answer was **${answer}**.`);
|
if (!msgs.size) return msg.reply(`Time's up, the answer was **${answer}**.`);
|
||||||
|
|||||||
@@ -49,6 +49,11 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
|||||||
url: 'https://www.dafont.com/',
|
url: 'https://www.dafont.com/',
|
||||||
reason: 'Pokemon Solid Font',
|
reason: 'Pokemon Solid Font',
|
||||||
reasonURL: 'https://www.dafont.com/pokemon.font'
|
reasonURL: 'https://www.dafont.com/pokemon.font'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Pokemoncries.com',
|
||||||
|
url: 'https://pokemoncries.com/',
|
||||||
|
reason: 'Cry Sound Effects'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
args: [
|
args: [
|
||||||
@@ -81,7 +86,7 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
|||||||
time: 15000
|
time: 15000
|
||||||
});
|
});
|
||||||
if (connection) {
|
if (connection) {
|
||||||
connection.dispatcher.end();
|
if (connection.dispatcher) connection.dispatcher.end();
|
||||||
await data.fetchCry();
|
await data.fetchCry();
|
||||||
if (data.cry) {
|
if (data.cry) {
|
||||||
connection.play(Readable.from([data.cry]));
|
connection.play(Readable.from([data.cry]));
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ module.exports = class PokedexCommand extends Command {
|
|||||||
name: 'Serebii.net',
|
name: 'Serebii.net',
|
||||||
url: 'https://www.serebii.net/index2.shtml',
|
url: 'https://www.serebii.net/index2.shtml',
|
||||||
reason: 'Images'
|
reason: 'Images'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Pokemoncries.com',
|
||||||
|
url: 'https://pokemoncries.com/',
|
||||||
|
reason: 'Cry Sound Effects'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
args: [
|
args: [
|
||||||
@@ -79,7 +84,8 @@ module.exports = class PokedexCommand extends Command {
|
|||||||
await reactIfAble(msg, this.client.user, '🔉');
|
await reactIfAble(msg, this.client.user, '🔉');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
embed.setFooter('Join a voice channel to hear the Pokémon\'s cry.');
|
const usage = this.client.registry.commands.get('join').usage();
|
||||||
|
embed.setFooter(`Join a voice channel and use ${usage} to hear the Pokémon\'s cry.`);
|
||||||
}
|
}
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user