Exemple #1
0
    def startFactory(self):
        for plugin in settings.PLUGINS:
            Plugin.load(plugin)

        protocol.ClientFactory.startFactory(self)
Exemple #2
0
 def load(self, name):
     '''Loads the specified plugin. Example: !load dice'''
     try:
         Plugin.load(name)
     except ImportError:
         return 'No such plugin.'