def queue_is_alive(self):
while self.seconds_to_next > 0:
self.seconds_to_next -= 1
await asyncio.sleep(1)
self.people_voted.clear()
# if there is an item at the front of the queue, play it and get the next item
if self.playlist.current:
await self.play_music(self.playlist.pop())
await asyncio.sleep(5)
elif self.playlist.current is None:
await self.play_music(link=self.database.get_random_music())
#await self.bot.change_presence(game=discord.Game(name='Queue is empty'))
评论列表
文章目录