static BigInteger points = bigint(0); static void loadPointBot() { load("points"); } static S answerPointBot(S s) { if (match("plus one", s) || match("good", s) || match("nice", s) || match("nice one", s) || match_dropping("gut", "sehr", s) || match("jawohl", s) || match("ganz recht", s)) { plusPoint(); ret "OK"; } if (match_dropping("how many points", "did you get got again and", s) || match_dropping("wie viele punkte", "hast du", s) || match_dropping("wieviele punkte", "hast du", s)) ret str(points); null; } static void plusPoint() { points = points.add(bigint(1)); log("PointBot", "+1"); save("points"); }