Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket, string
- trigger_words = {
- 'lol':'So how about them jewnigger?',
- 'LOL':'So how about them jewnigger?',
- '101':'So how about them jewnigger?',
- '|o|':'So how about them jewnigger?',
- '1o1':'So how about them jewnigger?',
- '1o1':'So how about them jewnigger?',
- 'wut':'What about them shemale jewnigger whores?',
- 'lolcats':'SO HOW ABOUT THEM LOLCATS?',
- 'kittymonster':'SLUTSLUTSLUT',
- 'askreddit':'So I heard you like gay sex?',
- '#askreddit':'So I heard you like gay sex?',
- 'lulz':'So how about them lolcats?',
- 'cats':'So how about them lolcats?',
- ':lol':'So how about them lolcats?',
- ':LOL':'So how about them lolcats?',
- ':101':'So how about them lolcats?',
- ':|o|':'So how about them lolcats?',
- ':1o1':'So how about them lolcats?',
- ':1o1':'So how about them lolcats?',
- ':lolcats':'SO HOW ABOUT THEM LOLCATS?',
- ':kittymonster':'SLUTSLUTSLUT',
- ':askreddit':'So I heard you like gay sex?',
- ':#askreddit':'So I heard you like gay sex?',
- ':lulz':'So how about them lolcats?',
- ':serena':'HOW IS THE JUNGLECUNT HANGING?',
- 'serena':'HOW IS THE JUNGLECUNT HANGING?',
- ':cats':'So how about them lolcats?',
- ':nigger':'So how about them black lolcats?',
- 'nigger':'So how about them black lolcats?',
- 'hobophobe':'YOUR MOM!',
- ':hobophobe':'YOUR MOM!',
- 'lookoutforchris':'HUGE VAGINA LOLCATS!',
- ':lookoutforchris':'HUGE VAGINA LOLCATS!',
- 'aperson':'Who is this annoying cunt? Also, how about them lolcats?',
- ':aperson':'Who is this annoying cunt? Also, how about them lolcats?'
- }
- SERVER = 'irc.freenode.net' #server to connect to
- PORT = 8000 #port to connect to
- NICKNAME = 'lolcockbot' #nickname to join with
- CHANNEL = '#reddit' #channel to join
- IRC = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- #open a connection with the server
- def irc_conn():
- IRC.connect((SERVER, PORT))
- #simple function to send data through the socket
- def send_data(command):
- IRC.send(command + '\n')
- #join the channel
- def join(channel):
- send_data("JOIN %s" % channel)
- #send login data (customizable)
- def login(nickname, username='user', password = None, realname='lolcat', hostname='Helena', servername='Server'):
- send_data("USER %s %s %s %s" % (username, hostname, servername, realname))
- send_data("NICK " + nickname)
- irc_conn()
- login(NICKNAME)
- join(CHANNEL)
- #PING PONG
- while True:
- data = IRC.recv (1024)
- print data
- if data.find('PING') != -1:
- IRC.send('PONG' + " " + data.split()[1] + '\r\n')
- for word in data.split():
- if word in trigger_words:
- IRC.send('PRIVMSG' + " " + CHANNEL + " :" + trigger_words[word] + '\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement