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)
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)
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)
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)
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)
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)
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()
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")
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)
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)
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)
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)
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"])
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"]
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"\.msg (\#[^ ]+)[ ]+([^ ].*)"
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"^\.(reload|unload)[ ]+([^ ]+)$"
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"]
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"])
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"]
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"]
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"]
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"\.join (\#[^ ]+)"
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"^\.deauth$"
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"^\.auth[ ]+([^ ]+)[ ]+([^ ]+)$" create_tables(bot)
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "cmd" self.rule = r"376.*"
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"^\.core_dump$"
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"]
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"])
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)
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"])
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"]
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"\.nick ([^ ]+)"
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r"\.send[ ]+([^ ].*)"
def __init__(self, bot, config): Module.__init__(self, bot, config) self.handler_type = "privmsg" self.rule = r'([a-zA-Z0-9_.,=?-]+?[:,])?.*'
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"]