def load(self, name, *plugins): '''Loads the specified plugin. Example: !load dice''' try: Plugin.load(name, *plugins) except ImportError: return 'Could not load {0}'.format(name) return '{0} was successfully loaded'.format(name)
def startFactory(self): for plugin in settings.PLUGINS: Plugin.load(plugin) protocol.ClientFactory.startFactory(self)