AARRGHHH!!!!
One thing I didn't think about. I thought this would be easier than this, but I am stumped again, because I don't know how to write the necessary VB script inside Hal.
Ok, I wanted to get this done a long time ago, but the Holidays have had me busy and now we are working 16 hour days and I NEED SLEEP!
The IRC scripting of this will work, but it will now require a VB'er to make a few adjustments. Cobra, sorry this is taking longer than I thought. If I would have posted this message a week ago, I would have cuaght the problem.
I started to post mIRC code and the explainations today and I found a problem. I will continue to post the code and explaination and I'll point out the problem, so that the VB'ers can jump in with a fix.
POST STARTED:
Cobra, I have laid this out for you the best I could. I really wasn’t sure how familiar you are with mIRC scripting, so this may seem really basic. I didn’t want to confuse you, if you are new to scripts. If you are familiar with scripting, then you will know where most of this script goes and you can jump around at your convenience.
As you may or may not know, IRC scripting is broken down into scripted modules (so to speak), EVENTS, ALIASES, REMOTE, Etc…
For simplicity sake, I would recommend you use mIRC with no additional scripts running, no third party scripts or add-ons.
The first thing we want to do is program the IRC bot to listen for your users. I have supplied you with the code to use any Bot name you choose.
In the EVENTS section of the scripts, you will add this line:
on 1:TEXT:BBOOTT:#:/msg $chan Hello $nick! You talking to me? If so, I only answer to my name. Make sure all questions to me are prefixed with my name.:=2:$nick
This basically, listens for users that may be trying to talk to your bot. What happens here is; the bot is scanning text in the channel, when it see’s it’s name, it greets the user with the default message and then it prepares the user for converstion. (If we didn’t do this, the next time the same user mentioned the bots name, it would get the same greeting over and over). The last part of the code in the line advances this user to a LEVEL 2.
LEVEL 2 users no longer get the Generic, “Hello”.
Now that this user is identified by the Bot as a LEVEL 2, it scans for text from this user and prepares Hal for conversation. (Hal must be running and the “Clipboard” option must be turned on, but you can do all of that when you get ready to run everything). For now, we need to just get the scripts running.
The next line you will also add to the EVENTS script:
on 2:text:*:#:{ if ($+(*,$me,*) iswm $1-) { clipboard $1- } }
(You will need to remove the { and } in the line if you just want to use generic syntax). Again, I am not sure of your scripting ability, so I included those in case you are familiar and you want to alter your Bot name “Static” or “Dynamic” and your clipboard options, “CR LF”, “append”, etc….
If you are not familiar, just remove the { and }, and add / to the clipboard ---- > “/clipboard $1-“
Here’s the line breakdown:
The IRC bot is scanning the channel for text. When it see’s the text from a LEVEL 2 user, it scans for it’s own name. If it finds it’s name in the Text, it writes the users text to the clipboard. (Now remember, Hal is running and listening for inputs to the clipboard).
AARRGGHHHH!________________________________________________________
HERE IS THE PROBLEM: Hal reads clipboard content as learning text, not as a question. Hal will just repeat what is in the clipboard. Therefore, Hal has no response. Hal needs to respond to the clipboard text as a question. (I don’t even know if this is in the VB scripting or if its part of the Hal executable.
Not really much sense in posting the rest of the IRC code, unless there is a way around this. But, I wanted to post this much, so the VB’ers could see what’s going on.
I can change the IRC Bot script to use a text file instead of the clipboard, if this is more approachable from Hal’s standpoint.
The question is: how do we pass text to Hal as a question, rather than something that Hal will just read, repeat and store as learned?
Thanks, If this can be done, we will do it Cobra. Hang in there [

]
-=Rick=-