R0b0t1
2007-07-14 16:21:01
Searches for text in chat box, if found, returns true and answers with pre-defined response.
Good idea? Answer with suggestions, comment, test results.
program New;
{.Include SRL/SRL.scar}
Function RespondTo(ChatText, Say: String): Boolean;
begin;
If (InChat(ChatText)) Then
begin;
Result:= True;
HumanText(Say, 5);
end else;
begin;
Result:= False;
end;
end;
begin
end.Good idea? Answer with suggestions, comment, test results.