diff --git a/bot.js b/bot.js index cdce00f2..fe23453d 100644 --- a/bot.js +++ b/bot.js @@ -78,12 +78,13 @@ bot.on('message', (message) => { // Add sound to queue if exists const sound = message.content.split('!')[1]; - if (sounds.includes(sound)) + if (sounds.includes(sound)) { addToQueue(voiceChannel, sound); - // Work through queue - if (bot.voiceConnections.array().length === 0) - playSoundQueue(); + // Work through queue + if (bot.voiceConnections.array().length === 0) + playSoundQueue(); + } }); function listCommands(user) { diff --git a/package.json b/package.json index 86c4d5b7..2552fbc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dicord_soundbot", - "version": "0.3.0", + "version": "0.3.1", "description": "A Discord Bot to play sounds", "main": "bot.js", "dependencies": {