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).

!752

html {
  S text = params.get("dialog");
  if (empty(text)) ret "No text";
  
  /*
  O lister = getBot("#1003083");
  if (lister == null) fail("no poems lister bot");
  long id = cast call(lister, "saveText", text, "A user-supplied dialog");
  ret "Poem saved as id " + id;*/
  
  S id = findSnippetByText(text);
  if (id != null)
    ret "Text exists as " + formatSnippetID(id);
  else {
    id = createSuperHighSnippet(text, "A user-supplied dialog", 52, null, null);
    ret "New text, saved as " + ahref(snippetLink(id), formatSnippetID(id));
  }
}

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