!7 set flag DynModule. sclass TelegramInitiativeBot > AbstractTelegramThinkBot { new L> activeTempRules; void thinkAbout(S s) { if (eq(s, "!initiative")) { L rules = mL_parsedNLRulesWithoutIDs("Initiative rules"); for (IfThen rule : shuffledIterator(rules)) { Pair p = nlLogic_extractFirstCondition(rule.in); if (p == null) continue; if (nlLogic_isFunc(p.a, 'initiative)) { postMessage(nlLogic_text(((Func) p.a).arg)); IfThen temp = IfThen(p.b, rule.out); print("Have temp rule: " + sfu(temp)); activeTempRules.add(pair(aGlobalID(), temp)); ret; } } } applyNLLogicFacts_v3(s, voidfunc(Exp e) { if (e cast Func) if (eq(e.name, 'output)) postMessage(e.arg.text()) }, activeTempRules); activeTempRules.clear(); } }