cmds.py 文件源码

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

项目:Discord-SelfBot 作者: IgneelDxD 项目源码 文件源码
def long(self, ctx):
        """Display also their content"""
        ttl = None if ctx.message.content.endswith(' stay') else 20
        p = commands.Paginator(prefix='```css')
        cmds = read_json("commands")
        p.add_line('[List of Custom Commands]')
        width = len(max(cmds, key=len))
        for cmd in sorted(cmds):
            p.add_line('{0:<{width}}| {1}'.format(cmd, cmds.get(cmd), width=width))
        for page in p.pages:
            await ctx.send(page, delete_after=ttl)
        await ctx.message.delete()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号