Advertisement
Guest User

Untitled

a guest
May 13th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. import socket, string
  2.  
  3. trigger_words = {
  4. 'lol':'So how about them jewnigger?',
  5. 'LOL':'So how about them jewnigger?',
  6. '101':'So how about them jewnigger?',
  7. '|o|':'So how about them jewnigger?',
  8. '1o1':'So how about them jewnigger?',
  9. '1o1':'So how about them jewnigger?',
  10. 'wut':'What about them shemale jewnigger whores?',
  11. 'lolcats':'SO HOW ABOUT THEM LOLCATS?',
  12. 'kittymonster':'SLUTSLUTSLUT',
  13. 'askreddit':'So I heard you like gay sex?',
  14. '#askreddit':'So I heard you like gay sex?',
  15. 'lulz':'So how about them lolcats?',
  16. 'cats':'So how about them lolcats?',
  17. ':lol':'So how about them lolcats?',
  18. ':LOL':'So how about them lolcats?',
  19. ':101':'So how about them lolcats?',
  20. ':|o|':'So how about them lolcats?',
  21. ':1o1':'So how about them lolcats?',
  22. ':1o1':'So how about them lolcats?',
  23. ':lolcats':'SO HOW ABOUT THEM LOLCATS?',
  24. ':kittymonster':'SLUTSLUTSLUT',
  25. ':askreddit':'So I heard you like gay sex?',
  26. ':#askreddit':'So I heard you like gay sex?',
  27. ':lulz':'So how about them lolcats?',
  28. ':serena':'HOW IS THE JUNGLECUNT HANGING?',
  29. 'serena':'HOW IS THE JUNGLECUNT HANGING?',
  30. ':cats':'So how about them lolcats?',
  31. ':nigger':'So how about them black lolcats?',
  32. 'nigger':'So how about them black lolcats?',
  33. 'hobophobe':'YOUR MOM!',
  34. ':hobophobe':'YOUR MOM!',
  35. 'lookoutforchris':'HUGE VAGINA LOLCATS!',
  36. ':lookoutforchris':'HUGE VAGINA LOLCATS!',
  37. 'aperson':'Who is this annoying cunt? Also, how about them lolcats?',
  38. ':aperson':'Who is this annoying cunt? Also, how about them lolcats?'
  39. }
  40.  
  41. SERVER = 'irc.freenode.net' #server to connect to
  42. PORT = 8000 #port to connect to
  43. NICKNAME = 'lolcockbot' #nickname to join with
  44. CHANNEL = '#reddit' #channel to join
  45.  
  46. IRC = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  47.  
  48. #open a connection with the server
  49. def irc_conn():
  50. IRC.connect((SERVER, PORT))
  51.  
  52. #simple function to send data through the socket
  53. def send_data(command):
  54. IRC.send(command + '\n')
  55.  
  56. #join the channel
  57. def join(channel):
  58. send_data("JOIN %s" % channel)
  59.  
  60. #send login data (customizable)
  61. def login(nickname, username='user', password = None, realname='lolcat', hostname='Helena', servername='Server'):
  62. send_data("USER %s %s %s %s" % (username, hostname, servername, realname))
  63. send_data("NICK " + nickname)
  64.  
  65. irc_conn()
  66. login(NICKNAME)
  67. join(CHANNEL)
  68.  
  69. #PING PONG
  70. while True:
  71.  
  72. data = IRC.recv (1024)
  73. print data
  74. if data.find('PING') != -1:
  75. IRC.send('PONG' + " " + data.split()[1] + '\r\n')
  76. for word in data.split():
  77. if word in trigger_words:
  78. IRC.send('PRIVMSG' + " " + CHANNEL + " :" + trigger_words[word] + '\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement