1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-06-18 10:19:05 +03:00
parent 43a2f99cb0
commit 41b8199958

View File

@ -168,7 +168,7 @@ Please provide a value to select one of the search results ranging from __1-10__
if (!msg.member.voiceChannel) return msg.channel.send(':x: You are not in a voice channel!'); if (!msg.member.voiceChannel) return msg.channel.send(':x: You are not in a voice channel!');
if (!serverQueue) return msg.channel.send(':x: There is nothing playing.'); if (!serverQueue) return msg.channel.send(':x: There is nothing playing.');
if (!args[1]) return msg.channel.send(`The current volume is: **${serverQueue.volume}** :speaker:`); if (!args[1]) return msg.channel.send(`The current volume is: **${serverQueue.volume}** :speaker:`);
if (args[1] === !Number.NaN) return msg.channel.send(':x: I\'m sorry, But you neeed to enter a valid __number__. ') if (args[1] !== Number.NaN) return msg.channel.send(':x: I\'m sorry, But you neeed to enter a valid __number__. ')
serverQueue.volume = args[1]; serverQueue.volume = args[1];
serverQueue.connection.dispatcher.setVolumeLogarithmic(args[1] / 5); serverQueue.connection.dispatcher.setVolumeLogarithmic(args[1] / 5);
return msg.channel.send(`I set the volume to: **${args[1]}** 🔊`); return msg.channel.send(`I set the volume to: **${args[1]}** 🔊`);