def __init__(self, bot: Bot) -> None: super().__init__() self.bot = bot self.old_help_command = bot.help_command bot.help_command = CustomHelp(bot) bot.remove_command("help") bot.add_command(_help_cmd)
def __init__(self, bot: Bot): super().__init__() self.bot = bot if GUILD_LOGS_WEBHOOK_URL: webhook_id, webhook_token = GUILD_LOGS_WEBHOOK_URL.strip( "/").split("/")[-2:] self.execute_webhook = partial(self.bot.rest.execute_webhook, int(webhook_id), webhook_token) for event_type, callback in self.optional_events: bot.subscribe(event_type, callback)
def unload(bot: Bot) -> None: bot.remove_plugin("Utils")
def load(bot: Bot) -> None: bot.add_plugin(Utils(bot))
def unload(bot: Bot) -> None: bot.remove_plugin("Events")
def load(bot: Bot) -> None: bot.add_plugin(Events(bot))
def unload(bot: Bot) -> None: bot.remove_plugin("Help")
def load(bot: Bot) -> None: bot.add_plugin(Help(bot))
def unload(bot: Bot) -> None: bot.remove_plugin("Admin")
def unload(bot: Bot) -> None: bot.remove_plugin("Config")
def load(bot: Bot) -> None: bot.add_plugin(Admin(bot))
def load(bot: Bot) -> None: bot.add_plugin(Config(bot))
def unload(bot: Bot) -> None: bot.remove_plugin("Errors")
def load(bot: Bot) -> None: bot.add_plugin(Errors(bot))
def unload(bot: lightbulb.Bot): bot.remove_plugin("SuperUser")
def load(bot: lightbulb.Bot): bot.add_plugin(SuperUser())