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()
评论列表
文章目录