I already have some stuff working, I think it would be good if we could just use a regular IRC server and then hook stuff up to it. Also, remember how I was talking about how we would have to include avatar id in each message? Not needed with IRC because It has the name built in.

You can see for your self how much "Wasted" bits there is in meta-data. Here's the code for a IRC printer that prints out everything that's sent and received. All you need is to input your own values for the server you want to connect to.
- Code: Select all
import sys
import socket
import string
Server="<server>"
Port=6667
Channel = "<channel>"
Nick="<nick>"
RN="<realname>"
ID="something"
readbuffer=""
sock=socket.socket( )
sock.connect((Server, Port))
sock.send("NICK %s\r\n" % Nick)
sock.send("USER %s %s bla :%s\r\n" % (ID, Server, RN))
sock.send('JOIN %s\r\n' % Channel)
while 1:
RCVED = sock.recv(1024)
print RCVED
There we go.

Just connect to any server you want to, I have a testing server that I run on my computer but, you can connect to an server really. I don't think it will fry their server.

Let me put it this way, don't use it on a server that you care about.
Oh and, just save that code and the file something like IRCprinter.py.
You'll need python, a sense of fun and some time to get it to work.
~Lontahv
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).