-
Winsock Question
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.
http://www.vbforums.com/showthread.php?t=157592
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!