コード例 #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
コード例 #2
0
ファイル: TODOList.py プロジェクト: glebihan/cinnabot
 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
ファイル: LaunchpadBuilds.py プロジェクト: glebihan/cinnabot
 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
ファイル: BanManagement.py プロジェクト: schnuffle/cinnabot
    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)
コード例 #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
コード例 #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
ファイル: UpstreamReleases.py プロジェクト: pixunil/cinnabot
 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
ファイル: GitHubWebHook.py プロジェクト: glebihan/cinnabot
 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
ファイル: MintDoc.py プロジェクト: glebihan/cinnabot
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     
     bot._irc.execute_every(3600, self._check_need_index)
コード例 #10
0
ファイル: GitHubWebHook.py プロジェクト: pixunil/cinnabot
 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
ファイル: FloodDetection.py プロジェクト: schnuffle/cinnabot
 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
ファイル: Sajoin.py プロジェクト: glebihan/cinnabot
 def __init__(self, bot, plugin_name):
     BasePlugin.__init__(self, bot, plugin_name)
     self._sajoin_list = {}