mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Fix
This commit is contained in:
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user