Exemplo n.º 1
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._users_with_code = {}
     try:
         bot._irc.execute_every(int(self._get_config("change_code_delay")) * 3600, self._change_code)
     except:
         pass
Exemplo n.º 2
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     self._commands = {}
     for regexp in TODO_LIST_COMMANDS:
         self._commands[re.compile(regexp, re.IGNORECASE)] = getattr(self, TODO_LIST_COMMANDS[regexp])
     
     self._load_todos()
Exemplo n.º 3
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     bot._irc.execute_every(900, self._check_failed_builds)
     self._check_failed_builds()
     
     self._known_builds = {}
     self._has_run = False
     self._last_date = None
Exemplo n.º 4
0
    def __init__(self, bot, plugin_name):
        BasePlugin.__init__(self, bot, plugin_name)

        self._bot._irc.add_global_handler("privnotice", self._on_irc_notice)

        self._channels = self._get_config("channels").split(",")
        self._current_loading_group = None
        self._load_operators_flags()

        bot._irc.execute_every(900, self._load_operators_flags)
        bot._irc.execute_every(60, self._check_expired_bans)
Exemplo n.º 5
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._users_with_code = {}
     if self._has_config("ignore_users"):
         self._ignore_users = self._get_config("ignore_users").split(",")
     else:
         self._ignore_users = []
     
     try:
         bot._irc.execute_every(int(self._get_config("change_code_delay")) * 3600, self._change_code)
     except:
         pass
Exemplo n.º 6
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     self._feed_urls = []
     for i in self._get_config_options():
         if i.startswith("feed_url"):
             self._feed_urls.append(self._get_config(i))
     
     bot._irc.execute_every(300, self._check_new_posts)
     self._check_new_posts()
     
     self._known_posts = []
     self._has_run = False
Exemplo n.º 7
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
             
     bot._irc.execute_every(3600, self._check_releases)
     self._check_releases()
Exemplo n.º 8
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     self._start_task(self._run_server)
     bot._irc.execute_every(5, self._check_webhook_queue)
Exemplo n.º 9
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     bot._irc.execute_every(3600, self._check_need_index)
Exemplo n.º 10
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     self._start_task(self._run_server)
Exemplo n.º 11
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._users_with_code = {}
Exemplo n.º 12
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._messages_by_source = {}
     self._messages_by_source2 = {}
     self._last_sent_warning = {}
     self._quiet_times = {}
Exemplo n.º 13
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._sajoin_list = {}