1
0
Fork 0
mirror of synced 2024-05-24 14:29:39 +12:00

Use correct attribute for length of a song

This commit is contained in:
Phxntxm 2017-07-23 17:34:28 -05:00
parent c782ad8727
commit 755d7cde06

View file

@ -68,8 +68,7 @@ class VoiceState:
def skip(self):
self.skip_votes.clear()
if self.playing:
self.voice.stop()
self.voice.stop()
def after(self, _=None):
if self.user_queue:
@ -683,7 +682,7 @@ class Music:
if song.requester == author:
found = True
break
count += song.duration
count += song.length
if not found:
await ctx.send("You are not in the queue!")
@ -776,7 +775,7 @@ class Music:
async def modskip(self, ctx):
"""Forces a song skip, can only be used by a moderator"""
state = self.voice_states.get(ctx.message.guild.id)
if state is None or not state.playing:
if state is None:
await ctx.send('Not playing any music right now...')
return