예제 #1
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'.*(http\://[a-z0-9]+\.youtube\.[a-z]+/watch\?v=[a-zA-Z0-9\-_\+\,\.]+)\&?.*'
     create_tables(bot)
예제 #2
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'%s[:,] *?(?:remember song|pami[ęe]taj piosenk[ęe]) *(.*)' % bot.config['nick']
     create_tables(bot)
예제 #3
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'.*?(?:[a-zA-Z0-9_.,=?-]+?[:,])? *(.*)'
     create_tables(bot)
예제 #4
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'\.dump'
     create_tables(bot)
예제 #5
0
파일: jiggly.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"(?i)%s[,:].*?(sing|(ś|s)piew|piosenk|song).*" % bot.config["nick"]
     self.songs = []
     with open(INPUT_FILE,"rt") as f:
         for line in f:
             self.songs.append(line)
예제 #6
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'%s[:,] *?(?:remember song|pami[ęe]taj piosenk[ęe]) *(.*)' % bot.config[
         'nick']
     create_tables(bot)
예제 #7
0
파일: parrot.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'\.dump'
     global bot_admins
     bot_admins = pickle.Unpickler(open(FNAME_A,'rb')).load()
예제 #8
0
파일: admin.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.auth[ ]+([^ ]+)[ ]+([^ ]+)$"
     global bot_admins
     try:
         bot_admins = pickle.Unpickler(open(FNAME_A,'rb')).load()
     except EOFError:
         bot.verbose_msg("error ! cannot load administrators data")
예제 #9
0
파일: parrot.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'([a-zA-Z0-9_.,=?-]+?[:,])?.*'
     global sayings
     try:
         sayings = pickle.Unpickler(open(FNAME_S,'rb')).load()
     except EOFError:
         sayings = list()
         pickle.Pickler(open(FNAME_S,'wb')).dump(sayings)
예제 #10
0
파일: parrot.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'.*?(?:[a-zA-Z0-9_.,=?-]+?[:,])? *(.*)'
     global sayings 
     try:
         sayings = pickle.Unpickler(open(FNAME_S,'rb')).load()
     except:
         sayings = list()
         pickle.Pickler(open(FNAME_S,'wb')).dump(sayings)
예제 #11
0
파일: parrot.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'.*(http\://[a-z0-9]+\.youtube\.[a-z]+/watch\?v=[a-zA-Z0-9\-_\+\,\.]+)\&?.*'
     global yt_links
     try:
         yt_links = pickle.Unpickler(open(FNAME_Y,'rb')).load()
     except EOFError:
         yt_links = list()
         pickle.Pickler(open(FNAME_Y,'wb')).dump(yt_links)
예제 #12
0
파일: parrot.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'%s[:,].*?(link|jutub|tube|film).*' % bot.config["nick"]
     global yt_links
     try:
         yt_links = pickle.Unpickler(open(FNAME_Y,'rb')).load()
     except EOFError:
         yt_links = list()
         pickle.Pickler(open(FNAME_Y,'wb')).dump(yt_links)
예제 #13
0
파일: ping.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i)(%s[:,] *)?(%s|jiggly)(!+).*' % (bot.config["nick"],bot.config["nick"])
예제 #14
0
파일: ping.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i)\b(hi|hello|hey|siemk?a|cze[sś][ćc]|pozdr[a-zA-Z]+|y[o0]) +(?:%s|jiggly).*' % bot.config["nick"]
예제 #15
0
파일: admin.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.msg (\#[^ ]+)[ ]+([^ ].*)"
예제 #16
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.(reload|unload)[ ]+([^ ]+)$"
예제 #17
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'%s[:,].*?(remember|pami[ęe]taj).*(wi[ęe]cej|more).*' % bot.config["nick"]
예제 #18
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i){0}[,:] ?ye+a+h.*'.format(bot.config["nick"])
예제 #19
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'%s[:,].*?(talk|m[óo]w|speak).*(wi[ęe]cej|more).*' % bot.config["nick"]
예제 #20
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i)\b%s[:,] *(hey|hi|hello|siemk?a|cze[sś][cć]|pozdr|y[o0]).*' % bot.config[
         "nick"]
예제 #21
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = '(?i)%s(:|,) *(?:roll)? *([0-9]*)(?:d|k)([0-9]+).*' % bot.config["nick"]
예제 #22
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.join (\#[^ ]+)"
예제 #23
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.deauth$"
예제 #24
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.auth[ ]+([^ ]+)[ ]+([^ ]+)$"
     create_tables(bot)
예제 #25
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "cmd"
     self.rule = r"376.*"
예제 #26
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.core_dump$"
예제 #27
0
파일: ping.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i)\b%s[:,] *(hey|hi|hello|siemk?a|cze[sś][cć]|pozdr|y[o0]).*' % bot.config["nick"]
예제 #28
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = '(?i){0}(:|,) ?.*(dup(?:i|a|o)|pierd(?:a|o)l|jeb(?:aj|a?n)|chuj|ciul|kurw).*'.format(
         bot.config["nick"])
예제 #29
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = '(?i){0}(:|,) ?.*(dup(?:i|a|o)|pierd(?:a|o)l|jeb(?:aj|a?n)|chuj|ciul|kurw).*'.format(
         bot.config["nick"])
예제 #30
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"(?i){0}[,:].*?(sing|(ś|s)piew|piosenk|song).*".format(
         bot.config["nick"])
     create_tables(bot)
예제 #31
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i)(%s[:,] *)?(%s|jiggly)(!+).*' % (bot.config["nick"],
                                                        bot.config["nick"])
예제 #32
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i)\b(hi|hello|hey|siemk?a|cze[sś][ćc]|pozdr[a-zA-Z]+|y[o0]) +(?:%s|jiggly).*' % bot.config[
         "nick"]
예제 #33
0
파일: admin.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.nick ([^ ]+)"
예제 #34
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"(?i){0}[,:].*?(sing|(ś|s)piew|piosenk|song).*".format(
         bot.config["nick"])
     create_tables(bot)
예제 #35
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.send[ ]+([^ ].*)"
예제 #36
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'([a-zA-Z0-9_.,=?-]+?[:,])?.*'
예제 #37
0
파일: admin.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "cmd"
     self.rule = r"376.*"
예제 #38
0
파일: admin.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.(reload|unload)[ ]+([^ ]+)$"
예제 #39
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.config["threadable"] = True
     self.config["thread_timeout"] = 1.0
     self.handler_type = "privmsg"
     self.rule = r'%s[:,].*?(link|jutub|tube|film).*' % bot.config["nick"]
예제 #40
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'(?i){0}[,:] ?ye+a+h.*'.format(bot.config["nick"])
예제 #41
0
파일: admin.py 프로젝트: DuoBelt/ScytheBot
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.core_dump$"