Example #1
0
def setup(bot):
    info.Info(name='settings',
              brief='configure things for commands',
              usage='settings [command] [option] [value]',
              category='Account').export(vars_.info_)

    bot.add_command(settings)
Example #2
0
def setup(bot):
    info.Info(name='blacklist',
              brief='removes a user from the whitelist',
              usage='`blacklist <user>`',
              category='Access Control').export(vars_.info_)

    bot.add_command(blacklist)
Example #3
0
def setup(bot):
    info.Info(
        name='invite',
        brief='invite me to your server',
        usage='`invite`',
    ).export(vars_.info_)
    bot.add_command(invite)
Example #4
0
def setup(bot):
    info.Info(name='meow',
              brief='sends a random cat pic',
              usage='`meow`',
              category='Fun',
              aliases=aliases).export(vars_.info_)

    bot.add_command(meow)
Example #5
0
def setup(bot):
    info.Info(
        name='whitelist',
        brief='allow another user to use a command',
        usage='`whitelist <command> <user>`',
        category='Access Control',
    ).export(vars_.info_)
    bot.add_command(whitelist)
Example #6
0
def setup(bot):
    info.Info(
        name='help',
        brief='Shows this help text',
        usage='`help [command]`',
        category='Info',
    ).export(vars_.info_)
    bot.remove_command('help')
    bot.add_command(send_help)
Example #7
0
def setup(bot):
    info.Info(
        name='alive',
        brief="this is for you to see if I'm alive",
        usage='`alive`',
        category='Info',
    ).export(vars_.info_)

    bot.add_command(alive)
Example #8
0
def setup(bot):
    info.Info(
        name='unregister',
        brief='deactivates your account',
        description=
        'call with no arguments to deactivate, append `-d` to delete all data',
        usage='`unregister [-d|delete]`',
        category='Account').export(vars_.info_)
    bot.add_command(unregister)
Example #9
0
def setup(bot):
    info.Info(
        name='status',
        brief='sets status to something',
        description='clears status if run with no arguments',
        usage='status [status message]',
        category='Core',
    ).export(vars_.info_)

    bot.add_command(status)
Example #10
0
def setup(bot):
    info.Info(
        name='setprefix',
        brief='change your prefix',
        usage='`setprefix <new_prefix>`',
        category='Access Control',
        aliases=['prefix'],
    ).export(vars_.info_)

    bot.add_command(setprefix)
Example #11
0
def setup(bot):
    info.Info(
        name='register',
        brief='register with bot',
        description=
        'register with the bot to use its functions, either self-host or provide token/email/pwd',
        usage='`b!register`',
        category='Account',
    ).export(vars_.info_)

    bot.add_cog(Register(bot))
Example #12
0
def setup(bot):
    info.Info(
        name='counter',
        brief='counts things',
        description=
        'allows other people to increase or decrease the counter in your status',
        usage='`<user> braincells[++|--]` or `counter <user> [++|--]`',
        category='Core',
        settings={
            'template':
            'anything, use $COUNTER$ where you want the counter to go',
            'enabled': 'none',
            'c': 'actual number for the counter',
        },
        defaults={
            'template': 'Braincell Counter: $COUNTER$',
            'whitelist': 'self',
            'enabled': True,
            'c': 0,
            'status': 'Braincell Counter: 0',
        }).export(vars_.info_)

    bot.add_command(counter)