Libraryless. Click here for Pure Java version (916L/7K/21K).
1 | !752 |
2 | |
3 | answer { |
4 | //if (!master()) null; |
5 | |
6 | if "make home page *" { |
7 | S uri = m.unq(0); |
8 | boolean has = (bool) call(hpBot(), "hasURL", uri); |
9 | if (has) |
10 | ret "Oops, got that already. " + linkPage(uri); |
11 | call(hpBot(), "setURL", uri, "Dummy entry for " + uri); |
12 | ret "Yo! " + linkPage(uri); |
13 | } |
14 | } |
15 | |
16 | static O hpBot() { |
17 | ret getBot("#1003007"); |
18 | } |
19 | |
20 | static S linkPage(S uri) { |
21 | ret botLink("#1003007") + addPrefix("/", uri); |
22 | } |
Began life as a copy of #1003007
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: | #1003009 |
Snippet name: | Home Page Adder |
Eternal ID of this version: | #1003009/1 |
Text MD5: | 10b7d1ca83f29477a792022ccea6cc67 |
Transpilation MD5: | fce93df7cbb896e7c8bae066818625d5 |
Author: | stefan |
Category: | eleu / internet |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-04-18 17:36:00 |
Source code size: | 458 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 719 / 825 |
Referenced in: | [show references] |