Exemple #1
0
def create_help_msg(is_admin):
    bot = KARMA_BOT
    help_msg = []
    help_msg.append('\nMessage commands (DM {0} typing `command`)'.format(
        bot))
    help_msg.append(create_commands_table(USER_COMMANDS))
    if is_admin:
        help_msg.append('\nAdmin commands')
        help_msg.append(create_commands_table(ADMIN_COMMANDS))
    return '\n'.join(help_msg)
Exemple #2
0
def create_help_msg(is_admin):
    help_msg = []
    help_msg.append('\n1. Channel commands (format: `@karmabot command`)')
    help_msg.append(create_commands_table(PUBLIC_BOT_COMMANDS))
    help_msg.append('\n2. Message commands (DM `@karmabot` typing `command`)')
    help_msg.append(create_commands_table(PRIVATE_BOT_COMMANDS))
    if is_admin:
        help_msg.append('\n3. Admin only commands')
        help_msg.append(create_commands_table(ADMIN_BOT_COMMANDS))
    return '\n'.join(help_msg)
Exemple #3
0
def create_help_msg(is_admin):
    help_msg = [
        "\n1. Channel commands (format: `@karmabot command`)",
        create_commands_table(PUBLIC_BOT_COMMANDS),
        "\n2. Message commands (type `command` in a DM to bot)",
        create_commands_table(PRIVATE_BOT_COMMANDS),
    ]
    if is_admin:
        help_msg.append("\n3. Admin only commands")
        help_msg.append(create_commands_table(ADMIN_BOT_COMMANDS))
    return "\n".join(help_msg)