Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1003009 // Home Page Adder

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (916L/7K/21K).

!752

answer {
  //if (!master()) null;
  
  if "make home page *" {
    S uri = m.unq(0);
    boolean has = (bool) call(hpBot(), "hasURL", uri);
    if (has)
      ret "Oops, got that already. " + linkPage(uri);
    call(hpBot(), "setURL", uri, "Dummy entry for " + uri);
    ret "Yo! " + linkPage(uri);
  }
}

static O hpBot() {
  ret getBot("#1003007");
}

static S linkPage(S uri) {
  ret botLink("#1003007") + addPrefix("/", uri);
}

Author comment

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: 718 / 824
Referenced in: [show references]