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