import socket, ssl, subprocess, time, os, json, random, httplib, urllib, ConfigParser
from subprocess import *

Config = ConfigParser.ConfigParser()
Config.read("config.ini")

server = Config.get("irc", "server")
port = Config.getint("irc", "port")
channel = Config.get("irc", "channel")
botnick = Config.get("points", "nick")
password = Config.get("irc", "password")

def ping(): 
  ircsock.send("PONG :pingis\n")  

def sendmsg(msg): 
  ircsock.send("PRIVMSG "+ channel +" :"+ msg +"\n")

def voice(ircstr):
  (_, _, voicestr) = ircstr.partition("!v")
  voicestr = voicestr.upper()
  sendmsg(voicestr)
  
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((server, port)) 
ircsock = ssl.wrap_socket(s)
ircsock.send("PASS "+ password +"\n") 
ircsock.send("USER "+ botnick +" "+ botnick +" "+ botnick +"QA PUSHER BOT!!!! \n") 
ircsock.send("NICK "+ botnick +"\n") 
ircsock.send("JOIN "+ channel +"\n")

while 1: 
  ircmsg = ircsock.recv(2048) 
  ircmsg = ircmsg.strip('\n\r') 

  if ircmsg.find(":!v") != -1:
    voice(ircmsg)
  
  if ircmsg.find("cry") != -1:
    sendmsg("ZAC?! WHERE IS ZAC?! IS HE HURT?!")

  if ircmsg.find("sprint") != -1:
    sendmsg("BEST THING ABOUT SPRINT: I GET TO EAT ENGINEERS AT THE END")

  if ircmsg.find("win") != -1:
    sendmsg("POINTS ARE FOR WINNERS!")

  if ircmsg.find("PING :") != -1:
    ping()

322bf0321ad039d222ef5ab62d2a307574b76c77
<mask token>


def ping():
    ircsock.send('PONG :pingis\n')


def sendmsg(msg):
    ircsock.send('PRIVMSG ' + channel + ' :' + msg + '\n')


def voice(ircstr):
    _, _, voicestr = ircstr.partition('!v')
    voicestr = voicestr.upper()
    sendmsg(voicestr)


<mask token>

<mask token>
Config.read('config.ini')
<mask token>


def ping():
    ircsock.send('PONG :pingis\n')


def sendmsg(msg):
    ircsock.send('PRIVMSG ' + channel + ' :' + msg + '\n')


def voice(ircstr):
    _, _, voicestr = ircstr.partition('!v')
    voicestr = voicestr.upper()
    sendmsg(voicestr)


<mask token>
s.connect((server, port))
<mask token>
ircsock.send('PASS ' + password + '\n')
ircsock.send('USER ' + botnick + ' ' + botnick + ' ' + botnick +
    'QA PUSHER BOT!!!! \n')
ircsock.send('NICK ' + botnick + '\n')
ircsock.send('JOIN ' + channel + '\n')
while 1:
    ircmsg = ircsock.recv(2048)
    ircmsg = ircmsg.strip('\n\r')
    if ircmsg.find(':!v') != -1:
        voice(ircmsg)
    if ircmsg.find('cry') != -1:
        sendmsg('ZAC?! WHERE IS ZAC?! IS HE HURT?!')
    if ircmsg.find('sprint') != -1:
        sendmsg('BEST THING ABOUT SPRINT: I GET TO EAT ENGINEERS AT THE END')
    if ircmsg.find('win') != -1:
        sendmsg('POINTS ARE FOR WINNERS!')
    if ircmsg.find('PING :') != -1:
        ping()

<mask token>
Config = ConfigParser.ConfigParser()
Config.read('config.ini')
server = Config.get('irc', 'server')
port = Config.getint('irc', 'port')
channel = Config.get('irc', 'channel')
botnick = Config.get('points', 'nick')
password = Config.get('irc', 'password')


def ping():
    ircsock.send('PONG :pingis\n')


def sendmsg(msg):
    ircsock.send('PRIVMSG ' + channel + ' :' + msg + '\n')


def voice(ircstr):
    _, _, voicestr = ircstr.partition('!v')
    voicestr = voicestr.upper()
    sendmsg(voicestr)


s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((server, port))
ircsock = ssl.wrap_socket(s)
ircsock.send('PASS ' + password + '\n')
ircsock.send('USER ' + botnick + ' ' + botnick + ' ' + botnick +
    'QA PUSHER BOT!!!! \n')
ircsock.send('NICK ' + botnick + '\n')
ircsock.send('JOIN ' + channel + '\n')
while 1:
    ircmsg = ircsock.recv(2048)
    ircmsg = ircmsg.strip('\n\r')
    if ircmsg.find(':!v') != -1:
        voice(ircmsg)
    if ircmsg.find('cry') != -1:
        sendmsg('ZAC?! WHERE IS ZAC?! IS HE HURT?!')
    if ircmsg.find('sprint') != -1:
        sendmsg('BEST THING ABOUT SPRINT: I GET TO EAT ENGINEERS AT THE END')
    if ircmsg.find('win') != -1:
        sendmsg('POINTS ARE FOR WINNERS!')
    if ircmsg.find('PING :') != -1:
        ping()

import socket, ssl, subprocess, time, os, json, random, httplib, urllib, ConfigParser
from subprocess import *
Config = ConfigParser.ConfigParser()
Config.read('config.ini')
server = Config.get('irc', 'server')
port = Config.getint('irc', 'port')
channel = Config.get('irc', 'channel')
botnick = Config.get('points', 'nick')
password = Config.get('irc', 'password')


def ping():
    ircsock.send('PONG :pingis\n')


def sendmsg(msg):
    ircsock.send('PRIVMSG ' + channel + ' :' + msg + '\n')


def voice(ircstr):
    _, _, voicestr = ircstr.partition('!v')
    voicestr = voicestr.upper()
    sendmsg(voicestr)


s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((server, port))
ircsock = ssl.wrap_socket(s)
ircsock.send('PASS ' + password + '\n')
ircsock.send('USER ' + botnick + ' ' + botnick + ' ' + botnick +
    'QA PUSHER BOT!!!! \n')
ircsock.send('NICK ' + botnick + '\n')
ircsock.send('JOIN ' + channel + '\n')
while 1:
    ircmsg = ircsock.recv(2048)
    ircmsg = ircmsg.strip('\n\r')
    if ircmsg.find(':!v') != -1:
        voice(ircmsg)
    if ircmsg.find('cry') != -1:
        sendmsg('ZAC?! WHERE IS ZAC?! IS HE HURT?!')
    if ircmsg.find('sprint') != -1:
        sendmsg('BEST THING ABOUT SPRINT: I GET TO EAT ENGINEERS AT THE END')
    if ircmsg.find('win') != -1:
        sendmsg('POINTS ARE FOR WINNERS!')
    if ircmsg.find('PING :') != -1:
        ping()

import socket, ssl, subprocess, time, os, json, random, httplib, urllib, ConfigParser
from subprocess import *

Config = ConfigParser.ConfigParser()
Config.read("config.ini")

server = Config.get("irc", "server")
port = Config.getint("irc", "port")
channel = Config.get("irc", "channel")
botnick = Config.get("points", "nick")
password = Config.get("irc", "password")

def ping(): 
  ircsock.send("PONG :pingis\n")  

def sendmsg(msg): 
  ircsock.send("PRIVMSG "+ channel +" :"+ msg +"\n")

def voice(ircstr):
  (_, _, voicestr) = ircstr.partition("!v")
  voicestr = voicestr.upper()
  sendmsg(voicestr)
  
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((server, port)) 
ircsock = ssl.wrap_socket(s)
ircsock.send("PASS "+ password +"\n") 
ircsock.send("USER "+ botnick +" "+ botnick +" "+ botnick +"QA PUSHER BOT!!!! \n") 
ircsock.send("NICK "+ botnick +"\n") 
ircsock.send("JOIN "+ channel +"\n")

while 1: 
  ircmsg = ircsock.recv(2048) 
  ircmsg = ircmsg.strip('\n\r') 

  if ircmsg.find(":!v") != -1:
    voice(ircmsg)
  
  if ircmsg.find("cry") != -1:
    sendmsg("ZAC?! WHERE IS ZAC?! IS HE HURT?!")

  if ircmsg.find("sprint") != -1:
    sendmsg("BEST THING ABOUT SPRINT: I GET TO EAT ENGINEERS AT THE END")

  if ircmsg.find("win") != -1:
    sendmsg("POINTS ARE FOR WINNERS!")

  if ircmsg.find("PING :") != -1:
    ping()
