Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- module.exports.run = async (client, message, args, ops) => {
- let fetched = ops.active.get(message.guild.id);
- if (!fetched) return message.channel.send("Il n'y a pas de musique joué!");
- 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");
- 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');
- fetched.dispatcher.setVolume(args[0]/100);
- message.channel.send('Volume mit avec succés de ${fetched.queue[0].songtit} à ${args[0]}');
- }
- module.exports.help = {
- name: 'volume'
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement