def setup(bot: LightningBot): bot.add_cog(Meta(bot)) # Remove support command if not in config if bot.config['bot'].get("support_server_invite", None) is None: bot.remove_command("support")
def setup(bot: LightningBot) -> None: bot.add_cog(Configuration(bot)) if "beta_prefix" in bot.config['bot']: bot.remove_command("config prefix")