diff --git a/assets/sounds/jeopardy.mp3 b/assets/sounds/jeopardy.mp3 new file mode 100644 index 00000000..70dd1a5e Binary files /dev/null and b/assets/sounds/jeopardy.mp3 differ diff --git a/commands/games-sp/jeopardy.js b/commands/games-sp/jeopardy.js index 1639ace6..52427fd2 100644 --- a/commands/games-sp/jeopardy.js +++ b/commands/games-sp/jeopardy.js @@ -25,7 +25,7 @@ module.exports = class JeopardyCommand extends Command { { name: 'Jeopardy', url: 'https://www.jeopardy.com/', - reason: 'Original Show' + reason: 'Music, Original Show' }, { name: 'OPTIFONT', @@ -41,6 +41,13 @@ module.exports = class JeopardyCommand extends Command { try { const question = await this.fetchQuestion(); const clueCard = await this.generateClueCard(question.question.replace(/<\/?i>/gi, '')); + const connection = msg.guild ? this.client.voice.connections.get(msg.guild.id) : null; + if (connection) { + connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'jeopardy.mp3')); + if (msg.channel.permissionsFor(this.client.user).has(['ADD_REACTIONS', 'READ_MESSAGE_HISTORY'])) { + await msg.react('🔉'); + } + } await msg.reply(`The category is: **${question.category.title.toUpperCase()}**. 30 seconds, good luck.`, { files: [{ attachment: clueCard, name: 'clue-card.png' }] }); diff --git a/package.json b/package.json index 5ff47d16..c31ae0f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.29.0", + "version": "114.29.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {