예제 #1
0
def setup(bot: Latte):
    cog = BotInfoCog(bot)
    bot.get_logger().info(
        msg="[BotInfoExt] Injecting key from ext_map matching with module path into cog ..."
            "(To access to cog instance in easier way.)"
    )
    cog.__cog_name__ = get_cog_name_in_ext(ext_map=bot.ext.ext_map, module_path=BotInfoCog.__module__)
    bot.add_cog(cog)
예제 #2
0
def setup(bot: Latte):
    print(f"[Latte] Registering the cog `Alarm`")
    bot.add_cog(cog=Alarm(bot=bot))
예제 #3
0
def setup(bot: Latte):
    bot.add_cog(Info(bot=bot))