1
0
Fork 0
mirror of synced 2024-06-28 11:10:27 +12:00

corrected error where the wrong class was being checked for duration

This commit is contained in:
Phxntxm 2016-08-06 09:43:09 -05:00
parent e64ce2b06c
commit d6fd844f92

View file

@ -231,14 +231,14 @@ class Music:
await self.bot.say("Nothing currently in the queue") await self.bot.say("Nothing currently in the queue")
return return
count = state.current.duration count = state.current.player.duration
found = False found = False
for song in state.songs._queue: for song in state.songs._queue:
if song.requester == author: if song.requester == author:
found = True found = True
break break
count += song.player.duration count += song.player.duration
if count == state.current.duration: if count == state.current.player.duration:
await self.bot.say("You are next in the queue!") await self.bot.say("You are next in the queue!")
return return
if not found: if not found: