コード例 #1
0
ファイル: antigerhard.py プロジェクト: ktosiek/mate
    def __init__(self, mate, config):
        MateModule.__init__(self, mate, config)
        self.regex = '.*'

        if self.conf['anycombo']:
            self.anycombo_msgs_so_far = 0

        self.last_combo = ''
        self.over_one_message = False
コード例 #2
0
ファイル: title.py プロジェクト: ktosiek/mate
    def __init__(self, mate, config):
        MateModule.__init__(self, mate, config)

        domain_name = '([^.]+\.)+[a-zA-Z]{2,}'
        ipv4 = '[0-9.]+' # taaa, akurat. Ale wystarczy. podobnie z ipv6
        ipv6 = '[0-9a-fA-F:]+'
        protocols = 'https?'
        port = '[0-9]+'

        self.regex = '(' + protocols + '://(' + '|'.join( (domain_name, ipv4, ipv6) ) + ')(:' + port + ')?(/[^ ]*)*)'
        self.conf['threadable'] = True
        self.conf['thread_timeout'] = 10.0
コード例 #3
0
ファイル: graj_ruletka.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '(?i)(' + mate.conf['nick'] + ': teraz ty([!]*))|(^\.krec)$'
     self.ready = False
コード例 #4
0
ファイル: bierz_go.py プロジェクト: ktosiek/mate
    def __init__(self, mate, config):
        MateModule.__init__(self, mate, config)
        self.last_nick = None

        self.regex = '(?i)' + mate.conf['nick']
コード例 #5
0
ファイル: wydupiaj.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '(?i)('+ mate.conf['nick'] +')?[ :]+((' + '|'.join(words_wydupiaj + words_jebajsie) + ') *)(' + mate.conf['nick'] + ')?([!?]*)$'
コード例 #6
0
ファイル: slowpoke.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = mate.conf['nick'] + ': slowpoke'
     self.conf['threadable'] = True
     self.conf['thread_timeout'] = 1.0
コード例 #7
0
ファイル: admin.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '^' + mate.conf['nick'] + ': say ([^ ]+) (.*)'
コード例 #8
0
ファイル: admin.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '^' + mate.conf['nick'] + ': (join|part) ([^ ]+) *$'
コード例 #9
0
ファイル: admin.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = mate.conf['nick'] + ': (irccmd|ctcp) (.*)'
コード例 #10
0
ファイル: admin.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = mate.conf['nick'] + ': (reload|unload) ([a-zA-Z0-9_]*)(( ([a-zA-Z0-9]+))*)'
コード例 #11
0
ファイル: ping.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '(?i)((hi|hello|hey|cześć|czesc|joł|jol|yo|omg)? *)' + mate.conf['nick'] + '([!?]*)$'
コード例 #12
0
ファイル: ping.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '(?i).*party.*'
コード例 #13
0
ファイル: enter_ninja.py プロジェクト: ktosiek/mate
 def __init__(self, mate, config):
     MateModule.__init__(self, mate, config)
     self.regex = '(?i)('+ '|'.join( list(responses.keys()) ) + ')'