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
示例#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()
示例#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
示例#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)
 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
示例#6
0
文件: RSS.py 项目: mtwebster/cinnabot
 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
示例#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()
示例#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)
示例#9
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     bot._irc.execute_every(3600, self._check_need_index)
示例#10
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     self._start_task(self._run_server)
示例#11
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._users_with_code = {}
示例#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 = {}
示例#13
0
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._sajoin_list = {}