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)
def setup(bot: Latte): print(f"[Latte] Registering the cog `Alarm`") bot.add_cog(cog=Alarm(bot=bot))
def setup(bot: Latte): bot.add_cog(Info(bot=bot))