Libraryless. Click here for Pure Java version (1716L/11K/37K).
!752 static volatile S name = "A-yet-unnamed-copy-of-Eleutheria"; static volatile S url, baseURL; // baseURL is the one that bots are under p { load("name"); load("url"); load("baseURL"); } synchronized answer { if "what is your name" ret name; if "what is your url" ret url; if "what is your base url" ret baseURL; if "your name is *" { S n = m.unq(0); if (eq(n, name)) ret "Yes."; else if (webAuthed()) { name = n; save("name"); ret format("OK, master! I am now *", name); } else ret "Only my master can tell me that..."; } if "your url is *" if (webAuthed()) { if (!isURL(m.unq(0))) ret "woot, master?"; url = m.unq(0); save("url"); ret "OK"; } if "your base url is *" if (webAuthed()) { if (!isURL(m.unq(0))) ret "woot, master?"; baseURL = m.unq(0); save("baseURL"); ret "OK"; } } static S getName() { ret name; } static S getURL() { ret url; } static S getBaseURL() { ret baseURL; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002596 |
Snippet name: | System Name + URLs Bot |
Eternal ID of this version: | #1002596/1 |
Text MD5: | 354a56fd15d9f04a32051f35b8f13624 |
Transpilation MD5: | 4ce1bca29330ba98fc24b691fea64c80 |
Author: | stefan |
Category: | eleu |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-14 17:20:06 |
Source code size: | 1144 bytes / 62 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 647 / 1730 |
Referenced in: | [show references] |