Example #1
0
 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)
Example #2
0
    def startFactory(self):
        for plugin in settings.PLUGINS:
            Plugin.load(plugin)

        protocol.ClientFactory.startFactory(self)