示例#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
 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
 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
 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
 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
 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
 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
 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
 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
 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
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "cmd"
     self.rule = r"376.*"
示例#38
0
 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
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.core_dump$"