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

18
LINES

< > BotCompany Repo | #1009876 // Find out what to do today [OK]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (10567L/70K).

!7

p-subst {
  final Web web = persistentObjectFromProgram(#1009839, "Web", Web);
  final WebNode today = web.findNode("Today");
  print("Today: " + today);
  if (today == null) ret;
  print();
  MultiMap<S, WebNode> relations = web_forwardMultiMapByLabel(today);
  Map<S, L<WebNode>> map = cloneMultiMapToTreeMap(relations);
  map.remove("Next day");
  pnl(map);
  
  L<WebNode> actions = map.get("I should");
  for (WebNode action : unnull(actions))
    if (confirmYesNo(action.text() + "?"))
      send("Voice Actions.", action.text());
}

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: #1009876
Snippet name: Find out what to do today [OK]
Eternal ID of this version: #1009876/13
Text MD5: fe7e7047d263a4c54ea5f4363baacb7c
Transpilation MD5: 28bb9426990e16301819a2c142486ce4
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-08-22 22:19:23
Source code size: 559 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 424 / 977
Version history: 12 change(s)
Referenced in: [show references]