示例#1
0
 def __init__(self):
     self.db = g.db
     self.cursor = g.cursor
     self.messageBuffer = []
     self.rand_jakeisms = []
     self.modifications = {}
     self.g_ratelimiter = g.ratelimiter()
     self.r_ratelimiter = g.ratelimiter(max=12)
     self.sr_ratelimiter = g.ratelimiter(max=6)
     self.k_ratelimiter = g.ratelimiter(1, 300000)
示例#2
0
    "You're still using the default terminal? I use iTerm.",
    "Whenever I spend the entire day looking at my external monitor and then go to use just my laptop my whole brain goes into a pretzel.",
    "I'm all about the funny",
    "It's a slippery slope: one day you're generating api tokens, the next you're torrenting Final Cut Pro.",
    "I've got a little grease lake going here. And I shall name you: Grease Lake!",
    "These German BMW makers are torturing asses.",
    "*standing at a urinal* Man, these things are heavy... The helmet, I mean.",
    "I'm not gonna f****n Bernie Sanders my lunch at work." ]
rand_jakeisms = []

blacklist = g.config['irc']['blacklist']
whitelist = g.config['irc']['whitelist']
fixed = g.config['irc']['fixed']
channelList = g.channels + g.silent_channels
modifications = {}
g_ratelimiter = g.ratelimiter()
r_ratelimiter = g.ratelimiter(max=12)
sr_ratelimiter = g.ratelimiter(max=6)
k_ratelimiter = g.ratelimiter(1, 300000)


def message(msg, chnl):
    if chnl not in g.silent_channels:
        ircsock.send("PRIVMSG {0} :{1}\r\n".format(chnl, msg))

def action(msg, chnl):
    if chnl not in g.silent_channels:
        ircsock.send("PRIVMSG {0} :\x01ACTION {1}\x01\r\n".format(chnl, msg))

def modify(amount, sender, nick):
    if nick in modifications: