Source: site.view [edit]
Function name: knockKnockWho
Arguments: who
Description:
Page type: webl
Render function:  
Module: sandbox

Page source:

var jokes = WubCall("KnockKnockParse", []);

var answer = "I'm not sure what you're talking about, but come in anyway.";

who = Str_Trim(Str_ToLowerCase(who));

every joke in jokes do
  if (who == Str_Trim(Str_ToLowerCase(joke.term))) then
     answer = joke.punch
  end;
end;
  
NewPage(`"` + answer + `"`, `text/plain`);