!7 static Map theoryForLineMap; sbool listen = true; p { theoryForLineMap = persistentHashMap('theoryForLineMap); if (run) { print("Listening to chat."); stefansChat_onLine(10, voidfunc(S line) { ChatMsg msg = mapToObject(stefansChat_onLine_fullParams!, ChatMsg); handleChatMsg(msg); }); } svoid handleChatMsg(ChatMsg msg) { lock dbLock(); Web web = theoryForLineMap.get(msg.globalID); if (web != null) ret; n.addLabel(/*"Text " +*/ quote(msg.text)); web_addString(n, msg.botMark ? "by bot" : "by user"); web_addStrings(n, ai_categoriesForChatLine(msg.text)); n.addLabel("Msg " + msg.globalID); theoryForLineMap.put(msg.globalID, simpleWebWith(n)); }