#irc bot import sys import socket import string import os HOST='irc.zloche.net' PORT=6667 NICK='The3l33tBot' IDENT='The3l33tOne' REALNAME='Jacolon' OWNER='The3l33tOne' CHANNELINIT='test443' readbuffer='' try: s=socket.socket( ) s.connect((HOST, PORT)) s.send('NICK '+NICK+'n') s.send('USER '+The3l33tOne+' '+localhost+' bla :'+Jacolon+'n') s.send('/privmsg #hbh test') #### here is where you'll want some in/out threading..... read my article on the caht application finally: s.close()