1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Finished implemenation of modular amount of required skips

This commit is contained in:
phxntxm 2016-08-19 23:25:17 -05:00
parent 5c6b36d645
commit 92ca0831e0

View file

@ -130,7 +130,11 @@ class Music:
state = self.get_voice_state(after.server)
if state.voice is None:
return
#state.required_skips = state.voice.channel
voice_channel = state.voice.channel
if voice_channel != before.voice.voice_channel and voice_channel != after.voice.voice_channel:
return
num_members =len(voice_channel.voice_members)
state.required_skips = math.ceil((num_members+1)/3)
@commands.command(pass_context=True, no_pm=True)
@checks.custom_perms(send_messages=True)