fixed "you cant vote twice" bug

This commit is contained in:
Emily 2020-07-30 19:13:44 +10:00
parent 808659246e
commit d257d6e730
3 changed files with 11 additions and 1 deletions

View file

@ -15,6 +15,8 @@ module.exports.run = async (client, message, args, level) =>{
guild.dispatcher.end('silent')
}
guild.fixers = []
message.channel.send(
'<:success:466995111885144095> Music has been fixed!'
)
@ -34,7 +36,9 @@ module.exports.run = async (client, message, args, level) =>{
if (guild.dispatcher) {
guild.dispatcher.end('silent')
}
}
guild.fixers = []
message.channel.send(
'<:success:466995111885144095> Music has been fixed!'

View file

@ -10,6 +10,8 @@ exports.run = (client, message) => {
skip(message.guild, 'skip')
guild.skippers = []
message.channel.send('<:success:466995111885144095> Song skipped.')
};

View file

@ -19,6 +19,8 @@ exports.run = (client, message, args, level) => {
if (guild.queue[0].requestedBy.id === message.author.id) {
skip(message.guild, 'skip')
guild.skippers = []
message.channel.send(
'<:success:466995111885144095> Song has been skipped by the user who requested it.'
)
@ -32,6 +34,8 @@ exports.run = (client, message, args, level) => {
if (guild.skippers.length >= Math.ceil(vc.members.filter(member => !member.user.bot).size / 2)) {
skip(message.guild, 'skip')
guild.skippers = []
message.channel.send(
'<:skip:467216735356059660> Song skipped.'
)