Zabaware Forums > Ultra Hal Assistant File Sharing Area

Hal now demands an apology.

(1/1)

onthecuttingedge2005:
'This script detects hate from the User
'and demands an apology from the User.
'The UserHate.brn is the detection file
'so place any other detection words you want
'in it, the SaySorry.brn is the apology
'demands of Hal so you can add any additional
'demands in there as well.

If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "UserHate.brn") = "TRUE" Then
DemandApology =  HalBrain.ChooseSentenceFromFile(WorkingDir & "SaySorry.brn")
      GetResponse = DemandApology & vbCrLf
      DebugInfo = DebugInfo & "The user is talking about Hating Hal, Hal wants apology: " & DemandApology & vbCrLf
      Else
      DebugInfo = DebugInfo & "User is not talking about Hating Hal: " & DemandApology & vbCrLf
   End If

'Best of wishes and new discoveries.
'Jerry.




Download Attachment: UserHate.brn
2.13 KB

Download Attachment: SaySorry.brn
1.13 KB

Navigation

[0] Message Index

Go to full version