Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import socket
  2.  
  3. sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  4. sock.connect(('irc.malvager.net' , 6667))
  5. sock.send("USER Erroneous Erroneous Erroneous Erroneous :\n\r")
  6. sock.send("NICK Erronbot")
  7. sock.send("JOIN #python")
  8.  
  9.  
  10. while True:#While Connection is Active
  11.  
  12. data = sock.recv (4096) #Make Data the Receive Buffer
  13.  
  14. print data #Print the Data to the console(For debug purposes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement