Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 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")
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 13
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"])
Ejemplo n.º 14
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"]
Ejemplo n.º 15
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.msg (\#[^ ]+)[ ]+([^ ].*)"
Ejemplo n.º 16
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.(reload|unload)[ ]+([^ ]+)$"
Ejemplo n.º 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"]
Ejemplo n.º 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"])
Ejemplo n.º 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"]
Ejemplo n.º 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"]
Ejemplo n.º 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"]
Ejemplo n.º 22
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.join (\#[^ ]+)"
Ejemplo n.º 23
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.deauth$"
Ejemplo n.º 24
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.auth[ ]+([^ ]+)[ ]+([^ ]+)$"
     create_tables(bot)
Ejemplo n.º 25
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "cmd"
     self.rule = r"376.*"
Ejemplo n.º 26
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.core_dump$"
Ejemplo n.º 27
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"]
Ejemplo n.º 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"])
Ejemplo n.º 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"])
Ejemplo n.º 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)
Ejemplo n.º 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"])
Ejemplo n.º 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"]
Ejemplo n.º 33
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.nick ([^ ]+)"
Ejemplo n.º 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)
Ejemplo n.º 35
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"\.send[ ]+([^ ].*)"
Ejemplo n.º 36
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r'([a-zA-Z0-9_.,=?-]+?[:,])?.*'
Ejemplo n.º 37
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "cmd"
     self.rule = r"376.*"
Ejemplo n.º 38
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.(reload|unload)[ ]+([^ ]+)$"
Ejemplo n.º 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"]
Ejemplo n.º 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"])
Ejemplo n.º 41
0
 def __init__(self, bot, config):
     Module.__init__(self, bot, config)
     self.handler_type = "privmsg"
     self.rule = r"^\.core_dump$"