!7 cmodule ClustersBot extends DynTalkBot2 { start { makeByServer = () -> new ByServer; useAGIBlueForDropPunctuation = false; preprocessAtSelfToMyName = false; } sclass Cluster { GlobalID globalID = aGlobalIDObject(); Set synonyms; } class ByServer extends DynTalkBot2.ByServer { new L clusters; synchronized S processSimplifiedLine(S s, O... _) { try answer super.processSimplifiedLine(s, _); // adding authorized users etc. new Matches m; S sOld = s; s = dropPrefixOrNull(myPrefix(), s); if (s == null) { print("no got prefix: " + quote(myPrefix()) + " / " + quote(sOld)); null; } if (matchX("do you know *", s, m)) ret "No I don't know " + $1; if (eqic(s, "help")) ret trim([[ Help text will go here. [Bot made by https://BotCompany.de] ]]).replace("@me", atSelf()); null; } } }