mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 02:33:18 +00:00
Fixed current volume message in volume.js
This commit is contained in:
parent
83a535d581
commit
58accb21e5
@ -8,8 +8,11 @@ module.exports = {
|
|||||||
execute(msg, args, client, Discord, prefix, command) {
|
execute(msg, args, client, Discord, prefix, command) {
|
||||||
let message = {};
|
let message = {};
|
||||||
const radio = client.radio.get(msg.guild.id);
|
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]);
|
const volume = parseFloat(args[1]);
|
||||||
if (client.funcs.check(client, msg, command)) {
|
if (client.funcs.check(client, msg, command)) {
|
||||||
if (isNaN(volume)) return msg.channel.send(client.messages.invalidVolume);
|
if (isNaN(volume)) return msg.channel.send(client.messages.invalidVolume);
|
||||||
|
Loading…
Reference in New Issue
Block a user