This commit is contained in:
Dragon Fire
2020-10-30 12:40:39 -04:00
parent d9bfcdb269
commit a2377e1a5a
4 changed files with 17 additions and 3 deletions
+3
View File
@@ -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)
+1 -1
View File
@@ -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}**.`);
+6 -1
View File
@@ -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]));
+7 -1
View File
@@ -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) {