voice.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:BuffBot 作者: Cmoen11 项目源码 文件源码
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'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号