I want to code an irc bot
What would be the architecture of the bot in the c programming interface?
Printable View
I want to code an irc bot
What would be the architecture of the bot in the c programming interface?
Oh you know the usual stuff.... if(), while(), for() and so on.... In C you make what the project demands, there are no interfaces...
So start working the 4 steps in my .sig ... Analyse -> Plan -> Write -> Test ... your first job is finding out the requirements for IRC Bots...
When you get to the writing and testing steps, if you have problems post your code (in code tags) and ask explicit questions... I'm sure some of us will help.
Also, this topic is more suited to the networking forum, also on this site.
So basically the bot needs to know of all the irc commands and the communicate through sockets?
Using port 6667?
That's exactly it!
Start here -> http://www.irchelp.org/irchelp/rfc/rfc.html
Well, it needs to know the commands it has to respond to and the one's it's going to issue... which will probably be some subset of the complete list.
And yes it has to communicate autonomously through sockets in a manner the IRC Server will understand.
You may not realize it yet, but you've stepped into a major snakepit with this one... Server/Client programming is not simple to begin with but when you start looking into the IRC protocals you're going to find it's like wading through quicksand.