Thread: IRC Bot architecture

  1. #1
    Registered User czar's Avatar
    Join Date
    Aug 2011
    Posts
    4

    Lightbulb IRC Bot architecture

    I want to code an irc bot
    What would be the architecture of the bot in the c programming interface?

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    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.

  3. #3
    Registered User czar's Avatar
    Join Date
    Aug 2011
    Posts
    4
    So basically the bot needs to know of all the irc commands and the communicate through sockets?

  4. #4
    Registered User czar's Avatar
    Join Date
    Aug 2011
    Posts
    4
    Using port 6667?

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    That's exactly it!

    Start here -> http://www.irchelp.org/irchelp/rfc/rfc.html
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by czar View Post
    So basically the bot needs to know of all the irc commands and the communicate through sockets?
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 11:21 PM
  2. PC architecture
    By Shotgun in forum C Programming
    Replies: 8
    Last Post: 04-28-2006, 12:53 AM
  3. Architecture Question
    By Orborde in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2005, 08:05 AM
  4. MAPI architecture
    By ranj in forum Windows Programming
    Replies: 2
    Last Post: 08-13-2003, 03:36 PM
  5. Changes: CPU Architecture
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 01-10-2002, 07:54 AM