python类HelpFormatter()的实例源码

meta.py 文件源码 项目:Harmonbot 作者: Harmon758 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def allcommands(self, ctx):
        '''All the commands'''
        # TODO: Fix/Deprecate?, all_commands alias
        formatter = commands.HelpFormatter(show_check_failure = True, show_hidden = True)
        formatter.format_help_for(ctx, self.bot)
        _commands = formatter.filter_command_list()
        _allcommands = ""
        for name, _command in _commands:
            _allcommands += name + ' '
        await self.bot.whisper(_allcommands[:-1])


问题


面经


文章

微信
公众号

扫码关注公众号