|
-
Jan 22nd, 2007, 01:20 PM
#10
Member
Re: IRC Bot Source Code
I'm checking out this bot and running it through step by step. I think I understand what it's doing, but not quite why/how.
Also, I'm trying to get it to where it picks up one what people say in the main room, run some calculations based on the input, and spit it back out.
I want this to occur in the main room, not in a private message.
I'm trying to figure out the sckServer.DataArrival part; I think that is the key for what I am looking for.
Basically, I'm wanting it to work so that the following happens:
<Joe_Schmoe> !roll 5
Bot catches "Joe_Schmoe", the "!roll" command, and "5". Bot creates 5 random numbers within a pre-determined range and sends back the following to the room for all to see:
<Bot_Test> <Joe_Schmoe> rolled 5 dice: #, #, #, #, #.
Really all I'm needing help on is figuring out how to catch the input and send the output.
Thanks!
Last edited by CyberInfantry; Jan 22nd, 2007 at 01:47 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|