def startFactory(self): for plugin in settings.PLUGINS: Plugin.load(plugin) protocol.ClientFactory.startFactory(self)
def load(self, name): '''Loads the specified plugin. Example: !load dice''' try: Plugin.load(name) except ImportError: return 'No such plugin.'