示例#1
0
def setup_all(bot: dbot, logger, lang):
    for module in __all__:
        bot.add_cog((getattr(importlib.import_module('.' + module, 'commands'),
                             module.capitalize()))(bot, logger, lang))
    return bot
示例#2
0
def setup(bot: commands.bot):
    bot.add_cog(Poll(bot))
示例#3
0
def setup(bot: commands.bot):
    bot.add_cog(Moderator(bot))
示例#4
0
def setup(bot: commands.bot):
    bot.add_cog(Youtube(bot))
示例#5
0
def setup(bot: commands.bot):
    bot.add_cog(Halloween(bot))
示例#6
0
def setup(bot: commands.bot):
    bot.add_cog(purger(bot))
示例#7
0
def launchBot(bot: commands.bot):
    bot.load_extension("cogs.utility")
    bot.remove_command("help")
    bot.load_extension("cogs.help")
    bot.load_extension("cogs.owner")
    bot.load_extension("cogs.meta")
    bot.load_extension("cogs.dblclient")
    bot.run(token)
示例#8
0
def setup(bot: commands.bot):
    bot.add_cog(Help(bot))
示例#9
0
def setup(bot: commands.bot):
    bot.add_cog(Tags(bot))
示例#10
0
def setup(bot: commands.bot):
    bot.add_cog(Track(bot))
示例#11
0
def setup(bot: commands.bot):
    bot.add_cog(Github(bot))
示例#12
0
def setup(bot: commands.bot):
    log.debug("Debug module loaded")
    bot.add_cog(Debug(bot))
示例#13
0
def setup(bot: commands.bot):
    bot.add_cog(Leveling(bot))
示例#14
0
def setup(bot: commands.bot) -> None:
    """Egg decorating Cog load."""
    bot.add_cog(EggDecorating(bot))
    log.info("EggDecorating cog loaded.")
示例#15
0
def setup(bot: commands.bot) -> None:
    """Sets up the Wolfram cog."""
    bot.add_cog(Wolfram(bot))
示例#16
0
def setup(bot: commands.bot):
    bot.add_cog(MangaDex(bot))
示例#17
0
def setup(bot: commands.bot):
    bot.add_cog(Lenny(bot))
示例#18
0
def launchBot(bot: commands.bot):
    bot.load_extension("cogs.utility")
    bot.load_extension("cogs.help")
    bot.load_extension("cogs.owner")
    bot.load_extension("cogs.meta")
    bot.load_extension("cogs.dblclient")
    bot.load_extension("cogs.configs")
    bot.load_extension("cogs.infos")
    bot.load_extension("jishaku")
    bot.run(token)
示例#19
0
def setup(bot: commands.bot):
    bot.add_cog(Music(bot))