Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- sock.connect(('irc.malvager.net' , 6667))
- sock.send("USER Erroneous Erroneous Erroneous Erroneous :\n\r")
- sock.send("NICK Erronbot")
- sock.send("JOIN #python")
- while True:#While Connection is Active
- data = sock.recv (4096) #Make Data the Receive Buffer
- print data #Print the Data to the console(For debug purposes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement