dupa

Author Topic: Simplify AIM Bot Log  (Read 2631 times)

rjbovitz

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • http://mywebpage.netscape.com/rjbovitz/bovi.html
Simplify AIM Bot Log
« on: December 01, 2003, 01:17:08 am »
Larry was nice enough to give the script for that nice looking AIM log but is there away just to keep the log from showing all the invalid frame and such messages and just keeping the actual dialog between the AIM Bot and whoever is talking to it?

By the way My son has been using Hal for about 4 years now (he's 10) it helped him to learn to spell and type.  What a great why to learn.
 

Larry

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Simplify AIM Bot Log
« Reply #1 on: December 01, 2003, 06:03:25 pm »
I'm surprised anyone even remembers that... to answer your question no... but that's the simple answer... the truth is you have to edit the current brain - if you've created a new brain, then you have to edit that one... which is better than editing the default brain in case something goes wrong...

Search for the following in your brain:
'POST PROCESS: SAVE HAL'S RESPONSE
PrevSent = GetResponse

'POST PROCESS: PRESERVE ALL VARIABLES


And compare to the following:
'POST PROCESS: SAVE HAL'S RESPONSE
PrevSent = GetResponse
AnswerSent = UserName & " said: " & Trim(OriginalSentence)
AnswerSent = HalBrain.FixCaps(HalBrain.HalFormat(AnswerSent))
QuestionSent = " Hal: " & Trim(GetResponse)
QuestionSent = HalBrain.FixCaps(HalBrain.HalFormat(QuestionSent))
HalBrain.AppendFile WorkingDir & "!Log" & date & ".txt", AnswerSent & vbCrLf & QuestionSent & vbCrLf

'POST PROCESS: PRESERVE ALL VARIABLES

Fairly simple and straight forward... The file will be created in your brain's subfolder and a new one will be created everyday that Hal chats - don't matter if he chats by bot or as the assistant, the log will be generated...

Hope this helps you out...
 

rjbovitz

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • http://mywebpage.netscape.com/rjbovitz/bovi.html
Simplify AIM Bot Log
« Reply #2 on: December 02, 2003, 09:07:38 am »
Thank you very much. You're a great help.