From 58accb21e53c7c928945810de522aeb679914884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 13 Mar 2020 01:04:05 +0200 Subject: [PATCH] Fixed current volume message in volume.js --- commands/volume.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/commands/volume.js b/commands/volume.js index 12763e0..c40cc1a 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -8,8 +8,11 @@ module.exports = { execute(msg, args, client, Discord, prefix, command) { let message = {}; const radio = client.radio.get(msg.guild.id); - /*message.currentVolume = client.messages.currentVolume.replace("%radio.volume%", radio.volume)*/ - if (!args[1] && radio) return msg.channel.send(client.messages.currentVolume); + + if (!args[1] && radio) { + message.currentVolume = client.messages.currentVolume.replace("%radio.volume%", radio.volume) + return msg.channel.send(message.currentVolume); + } const volume = parseFloat(args[1]); if (client.funcs.check(client, msg, command)) { if (isNaN(volume)) return msg.channel.send(client.messages.invalidVolume); @@ -21,4 +24,4 @@ module.exports = { return msg.channel.send(message.newVolume); } } -}; +}; \ No newline at end of file