Advertisement
SHCREW

volume

May 30th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. const Discord = require('discord.js');
  2. module.exports.run = async (client, message, args, ops) => {
  3. let fetched = ops.active.get(message.guild.id);
  4. if (!fetched) return message.channel.send("Il n'y a pas de musique joué!");
  5. if (message.member.voiceChannel !== message.guild.me.voiceChannel) return message.channel.send("Désolé, tu n'es pas dans le même channel que le bot");
  6. if (isNaN(args[0]) || args[0] > 200 || args[0] < 0) return message.channel.send('S il vous plait mettez un nombre entre 200 et 0');
  7. fetched.dispatcher.setVolume(args[0]/100);
  8. message.channel.send('Volume mit avec succés de ${fetched.queue[0].songtit} à ${args[0]}');
  9. }
  10.  
  11. module.exports.help = {
  12. name: 'volume'
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement