I've found many tutorials on writing IRC bots and I think it would be nifty to code a simple chat bot for tinychat

I was thinking something with basic greet functionality and maybe being able to tell you what the weather is going to be.

I have no idea where to start on something like this. I found the tinychat developer api page http://tinychat.com/developer/ but it appears that it is only for embedding chatrooms onto a website and wouldn't help at all for writing a bot.

Does anyone have any information on the protocol or how I would begin writing a program that would connect to their chat network?

I'm not sure if C/C++ would even be the best choice for something like this. Any input would be helpful.