def react_mode(msg): if msg.msg == "+o " + NICK: send_msg(msg.channel, Value.randOPMsg(msg)) elif msg.msg == "-o " + NICK: send_msg(msg.channel, Value.randDEOPMsg(msg)) elif msg.msg.find(NICK) != -1: send_msg(msg.channel, Value.randCuriousMsg(msg))
def react_mode(msg): if msg.msg == "+o " + NICK: send_msg(msg.channel, Value.randOPMsg(msg)) elif msg.msg == "-o " + NICK: send_msg(msg.channel, Value.randDEOPMsg(msg)) elif msg.msg.find(NICK) != -1: send_msg(msg.channel, Value.randCuriousMsg(msg))