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

20
LINES

< > BotCompany Repo | #1003232 // AI Maker

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

Libraryless. Click here for Pure Java version (1388L/10K/32K).

1  
!752
2  
3  
html {
4  
  S text = params.get("dialog");
5  
  if (empty(text)) ret "No text";
6  
  
7  
  /*
8  
  O lister = getBot("#1003083");
9  
  if (lister == null) fail("no poems lister bot");
10  
  long id = cast call(lister, "saveText", text, "A user-supplied dialog");
11  
  ret "Poem saved as id " + id;*/
12  
  
13  
  S id = findSnippetByText(text);
14  
  if (id != null)
15  
    ret "Text exists as " + formatSnippetID(id);
16  
  else {
17  
    id = createSuperHighSnippet(text, "A user-supplied dialog", 52, null, null);
18  
    ret "New text, saved as " + ahref(snippetLink(id), formatSnippetID(id));
19  
  }
20  
}

Author comment

Began life as a copy of #1003213

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003232
Snippet name: AI Maker
Eternal ID of this version: #1003232/1
Text MD5: e6364fdf4ea4784dbfaa215b482918b6
Transpilation MD5: e34b642b5672bfa2717af1c50c29939d
Author: stefan
Category: eleu / nl
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-05 22:35:18
Source code size: 576 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 920
Referenced in: [show references]