Example #1
0
 def __init__(self, name, manager, configuration=None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.history_command = self.cfg().chatlog.history_command
     self.offtopic_command = self.cfg().chatlog.offtopic_command
     self.history_directory = self.cfg().chatlog.history_directory
     self.logs_directory = self.history_directory + "/"
     if not os.path.exists(self.logs_directory):
         os.makedirs(self.logs_directory)
    def __init__(self, name, manager, configuration = None):
        MumoModule.__init__(self, name, manager, configuration)
        self.murmur = manager.getMurmurModule()

        self.action_stick_user = manager.getUniqueAction()
        self.action_unstick_user = manager.getUniqueAction()
        self.action_list_sticked = manager.getUniqueAction()

        self.sticky_users={}
    def __init__(self, name, manager, configuration=None):
        MumoModule.__init__(self, name, manager, configuration)
        self.murmur = manager.getMurmurModule()

        self.action_auth = manager.getUniqueAction()
        self.action_unauth = manager.getUniqueAction()

        self.auth_timers = {}
        self.auth_cache = set()
Example #4
0
 def __init__(self, name, manager, configuration=None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.basedir = os.path.abspath(self.cfg().randimg.basedir)
     self.baselink = self.cfg().randimg.baselink
     self.baserand = self.cfg().randimg.baserand
     self.keywords = self.cfg().randimg.keywords
     self.links = self.cfg().randimg.links
     self.allimages = self.listAllImages()
    def __init__(self, name, manager, configuration=None):
        MumoModule.__init__(self, name, manager, configuration)
        self.murmur = manager.getMurmurModule()
        self.action_allow_recording = manager.getUniqueAction()
        self.action_disallow_recording = manager.getUniqueAction()
        self.action_list_allowed = manager.getUniqueAction()

        self.list_state_before_recording = {}
        self.allowedusers = {
        }  # Will contain one object for every virtual server.
Example #6
0
            def __init__(self, name, manager, configuration=None):
                MumoModule.__init__(self, name, manager, configuration)

                self.estarted = Event()
                self.estopped = Event()
                self.econnected = Event()
                self.edisconnected = Event()

                self.emeta = Event()
                self.econtext = Event()
                self.eserver = Event()
Example #7
0
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     
     self.estarted = Event()
     self.estopped = Event()
     self.econnected = Event()
     self.edisconnected = Event()
     
     self.emeta = Event()
     self.econtext = Event()
     self.eserver = Event()
Example #8
0
    def __init__(self, name, manager, configuration=None):
        MumoModule.__init__(self, name, manager, configuration)
        self.murmur = manager.getMurmurModule()
        log = self.log()

        counter = 1
        twitterstream.twitterchannels = {}
        scfg = 0
        log.debug("Starting #")
        while (not (scfg is None)):
            log.debug("Starting ## " + str(counter))
            try:
                scfg = getattr(self.cfg(), 'twitter_%d' % counter)
                log.debug("Starting " + str(counter))
            except AttributeError:
                scfg = None
                log.debug("Starting failed " + str(counter))
                break
            log.debug("sss:" + repr(scfg.CONSUMER_KEY))

            twitterstream.twitterchannels[counter] = TwitterObject(scfg, log)
            #            twitterstream.twitterchannels[counter].start()

            counter = counter + 1
Example #9
0
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
Example #10
0
 def __init__(self, name, manager, configuration=None):
     MumoModule.__init__(self, name, manager, configuration)
Example #11
0
 def __init__(self, name, manager, configuration=None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.afkchannel = self.cfg().afkdeaf.afkchannel
     self.data = {}
Example #12
0
 def __init__(self, name, manager, configuration=None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.keyword = self.cfg().chatimg.keyword
Example #13
0
 def __init__(self, name, manager, configuration=None):
     MumoModule.__init__(self, name, manager, configuration)
     self._games = []
     self._bottle = Bottle()
     Thread(target=lambda: runBottle(
         self._bottle, host='localhost', port=8088)).start()
Example #14
0
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.keyword = self.cfg().chatimg.keyword
Example #15
0
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     log = self.log()
     cfg = self.cfg()
     log.debug("tvar: %s", cfg.testing.tvar)
     log.debug("novar: %s", cfg.testing.novar)
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.keyword = self.cfg().networkurltoanchor.keyword
Example #17
0
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.action_poke_user = manager.getUniqueAction()
     self.action_info = manager.getUniqueAction()
     self.action_remove = manager.getUniqueAction()
 def __init__(self, name, manager, configuration = None):
     MumoModule.__init__(self, name, manager, configuration)
     self.murmur = manager.getMurmurModule()
     self.action_register_user = manager.getUniqueAction()
Example #19
0
 def onStart(self):
     MumoModule.onStart(self)
     cfg = self.cfg()
     self.db = SourceDB(cfg.source.database)
Example #20
0
 def onStop(self):
     MumoModule.onStop(self)
     self.db.close()