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
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()
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
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)
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
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
def __init__(self, bot, plugin_name): BasePlugin.__init__(self, bot, plugin_name) bot._irc.execute_every(3600, self._check_releases) self._check_releases()
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)
def __init__(self, bot, plugin_name): BasePlugin.__init__(self, bot, plugin_name) bot._irc.execute_every(3600, self._check_need_index)
def __init__(self, bot, plugin_name): BasePlugin.__init__(self, bot, plugin_name) self._start_task(self._run_server)
def __init__(self, bot, plugin_name): BasePlugin.__init__(self, bot, plugin_name) self._users_with_code = {}
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 = {}
def __init__(self, bot, plugin_name): BasePlugin.__init__(self, bot, plugin_name) self._sajoin_list = {}