'RESPOND: SING A SONG AT USER'S REQUEST '==Bill Rogers (aka: Bill819) == 12-01-04 ======== If HalBrain.TopicSearch(UserSentence, WorkingDir & "XTF_SYS_SongDetect.brn") = "True" And GetResponseBlock <> True Then HalCommands = HalCommands & " " & HalBrain.ChooseSentenceFromFile(WorkingDir & "XTF_SYS_Song.brn") & " " HalCommands = Replace(HalCommands, "", "" & UserName & " ", 1, -1, vbTextCompare) 'Replace With the user's name. HalCommands = Replace(HalCommands, "", " " & ComputerName & " ", 1, -1, vbTextCompare) 'Replace With the Hal's name. GetResponse = "" GetResponseBlock = True BlockPrevTopicSave = True BlockSave = True 'Don't save User input when requesting a song. DebugInfo = DebugInfo & GetResponse & VbCrLf End If