Libraryless. Click here for Pure Java version (1068L/7K/24K).
!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; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment