sclass AI_FactsBot > AttractorBot { Collection facts = synchroCISet(); public void run { say("I can store facts. Just type them. " + n2(facts, "fact") + " stored."); } // CONFIG class QuestionAttractor > Attractor { public bool matches(S s) { ret ai_isQuestion_2(s); } public void run { say("I cannot answer questions yet"); } } class StoreFactAttractor > Attractor { S category; public bool matches(S s) { true; } public void run { if (facts.add(line)) say("Fact stored"); else say("I know"); } } *() { standardAttractors(new QuestionAttractor, new StoreFactAttractor); } }