Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Hey its me again with a questions to bear!!??Maybe i will get answers?
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449495 is a reply to message #449481] Thu, 07 July 2011 02:12 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
You basicly want to use a library (ie the one iRANian suggested if you program C++) or a custom written program to connect to IRC and join a channel (or multiple channels).
Then you want to parse the messages that people type. You probably want commands to start with a ! or similar, so check each chat message for that.
Once you received a command (message that begun with that !), you check the word following it. If that word is 1 of your bots' commands, you check the words following that.
If word count != parameters needed, you either want to ignore the message, or state that the command needs more or less parameters.
If the word count equals the commands' parameter count, you do whatever you want to do with these, and return output.

This is the most detailed IRC bot step-by-step plan I can think of.
Maybe someone else has something to add?


EDIT: If you don't know anything about programming, I'd start learning that first. If you do know how to code, you probably want to get a library for the language you are familiar with. Wink


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Thu, 07 July 2011 02:15]

Report message to a moderator

 
Read Message icon6.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Decent map makers out there?
Next Topic: How to setup a Visual Studio 2010 SSGM plugin?
Goto Forum:
  


Current Time: Wed Dec 18 12:18:33 MST 2024

Total time taken to generate the page: 0.01222 seconds