예제 #1
0
파일: rules.py 프로젝트: xnaas/sopel
 def __init__(self):
     self._rules = tools.SopelMemoryWithDefault(list)
     self._commands = tools.SopelMemoryWithDefault(dict)
     self._nick_commands = tools.SopelMemoryWithDefault(dict)
     self._action_commands = tools.SopelMemoryWithDefault(dict)
     self._url_callbacks = tools.SopelMemoryWithDefault(list)
     self._register_lock = threading.Lock()
예제 #2
0
파일: jobs.py 프로젝트: sopel-irc/sopel
    def clear_jobs(self):
        with self._mutex:
            self._jobs = tools.SopelMemoryWithDefault(list)

        LOGGER.debug('Successfully unregistered all jobs')
예제 #3
0
파일: jobs.py 프로젝트: sopel-irc/sopel
 def __init__(self, manager):
     super().__init__(manager)
     self._jobs = tools.SopelMemoryWithDefault(list)