!752 static O mainBot; static S cookieName = "deh-cookie"; static int cookieDays = 32; static int cookieCounter = 1; p { load("cookieCounter"); } static synchronized S html() { O cookies = call(mainBot, "getCookies"); S cookie = cast call(cookies, "read", cookieName); boolean isNew = false; if (cookie == null) { isNew = true; cookie = "Cookie " + (cookieCounter++); save("cookieCounter"); call(cookies, "set", cookieName, cookie, cookieDays); } ret "Hello! Your " + (isNew ? "new " : "recurring ") + "cookie is: " + cookie; }