def load_plugins(self): self.non_plugins = [] self.plugins = {} self.plugin_helps = {'help': HELP_DOC} for plugin in list_plugins(): if plugin.__doc__ and plugin.COMMAND: self.plugin_helps[ plugin.COMMAND.lower()] = plugin.__doc__.strip('\n') if plugin.COMMAND: self.plugins[plugin.COMMAND.lower()] = plugin else: self.non_plugins.append(plugin)
def get_credits(): for plugin in list_plugins(): yield get_plugin_name(plugin), \ get_plugin_author(plugin)