Exemple #1
0
def react_loveU(msg):
    prtLog("pat: "+msg.nick)
    value = getPerson(msg).plus(MAX)
    if value:
        send_msg(msg.channel, Value.randSatisfyMsg(msg))
    else:
        send_msg(msg.channel, Value.randAnnoyedMsg(msg))
Exemple #2
0
def react_sleep(msg):
    prtLog("sleep: "+msg.nick)
    if msg.ID == ID_NORANG:
        quit(msg.channel, Value.randQuitMsg(msg))
        return True
    else:
        if getPerson(msg).minus(MAX):
            send_msg(msg.channel, Value.randNoQuitMsg(msg))
        else:
            send_msg(msg.channel, Value.randAnnoyedMsg(msg))
        return False
Exemple #3
0
def react_dog(msg):
    prtLog("dog: "+msg.nick)
    if getPerson(msg).minus(LITTLE):
        send_msg(msg.channel, Value.randHateMsg(msg))
    else:
        send_msg(msg.channel, Value.randAnnoyedMsg(msg))