corrected error where the wrong class was being checked for duration
This commit is contained in:
parent
e64ce2b06c
commit
d6fd844f92
1 changed files with 2 additions and 2 deletions
|
@ -231,14 +231,14 @@ class Music:
|
|||
await self.bot.say("Nothing currently in the queue")
|
||||
return
|
||||
|
||||
count = state.current.duration
|
||||
count = state.current.player.duration
|
||||
found = False
|
||||
for song in state.songs._queue:
|
||||
if song.requester == author:
|
||||
found = True
|
||||
break
|
||||
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!")
|
||||
return
|
||||
if not found:
|
||||
|
|
Loading…
Reference in a new issue