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 |
|
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.
[Updated on: Thu, 07 July 2011 02:15] Report message to a moderator
|
|
|