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

16
LINES

< > BotCompany Repo | #1010737 // What did I learn today bot

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

Download Jar. Libraryless. Click here for Pure Java version (14170L/100K).

!7

p {
  botIfMain();
  consoleInputIfMain("What did you learn today?");
}

answer {
  if "What did you learn today?"
    ret search("I learned today");
}

static S search(S text) {
  L<WebNode> nodes = indexedNodes2(text);
  ret text + ": " + or2(joinWithSpace(map addDotIfNoPunctuation(web_uniqueOperandTexts(nodes, "", "that"))), "Nothing");
}

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: #1010737
Snippet name: What did I learn today bot
Eternal ID of this version: #1010737/5
Text MD5: 72a1319f1c64145d8801ffb5eb454efc
Transpilation MD5: a83988ebd2c2e31446cdb7fba4e4f250
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-28 17:52:46
Source code size: 362 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 647 / 1193
Version history: 4 change(s)
Referenced in: #1010753 - Smart Thought Bot v2