svoid bot_handleStefansChat() { stefansChat_onLine_lookback = 1; //stefansChat_onLine_onHistoryRead.set(f onHistoryRead); stefansChat_onLine_safe(voidfunc(fS text) { pcall { int nr = toInt(mapGet(stefansChat_onLine_fullParams!, "nr")); print("> [" + nr + "] " + text); if (nr != 0) stefansChat_n_notify(nr); } S a = answer(text); a = bot_shortenAnswerForChatAndUploadFull(myName, text, a); postToStefansChat(a); }); }