(bot, user, args)
Prints help for each command.
Prints help for each command.
Prints help for each command .
def help(bot, user, args):
    '''Prints help for each command.'''
    msg = '{0}\n\n'.format(bot.messages['help_header'])
    for name, info in sorted(bot.commands.items()):
        if not info['hidden'] or '-a' in args:
            msg += '`{0}`: {1}\n'.format(name, info['info'])
            if info['usage']:
                usage_str = '\n'.join(['> \t' + s for s in info['usage']])
                msg += '> {0}:\n{1}\n'.format(bot.messages['help_usage'], usage_str)
    msg += bot.messages['help_footer']
    bot.chat.message_user(user, msg)
def help ( bot , user , args ) : msg = '{0}\n\n' . format ( bot . messages [ 'help_header' ] ) for name , info in sorted ( bot . commands . items ( ) ) : if not info [ 'hidden' ] or '-a' in args : msg += '`{0}`: {1}\n' . format ( name , info [ 'info' ] ) if info [ 'usage' ] : usage_str = '\n' . join ( [ '> \t' + s for s in info [ 'usage' ] ] ) msg += '> {0}:\n{1}\n' . format ( bot . messages [ 'help_usage' ] , usage_str ) msg += bot . messages [ 'help_footer' ] bot . chat . message_user ( user , msg )