service.py 文件源码

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

项目:StreamNotificationBot 作者: ivandardi 项目源码 文件源码
def _make_list_embed(self, streamers, subscriber):
        streams = '\n'.join(f'[{username}]({self.stream_url(username)})' for (username,) in streamers)
        if len(streams) > 1024:
            log.warning('Embed value length is over 1024!')
            return discord.Embed(
                description='Please complain about embed pagination in https://discord.gg/xrzJhqq',
                color=discord.Color.red()
            )

        embed = discord.Embed(description=streams, color=discord.Color.blue())
        embed.set_author(name=f"{self.service_name.capitalize()} subscriptions for {subscriber}")
        return embed
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号