corrected error where the wrong class was being checked for duration
This commit is contained in:
parent
e64ce2b06c
commit
d6fd844f92
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue