!include #1003413 // LooseBot v5 static OccTree2 botTree; static O makeBot = func { new LooseBot(botTree, null).debugOn() }; svoid expandDialogs(L<Dialog> dialogs) { for (Dialog d : dialogs) for (int i = 0; i < l(d.poem); i++) { E e = d.poem.get(i); if (!e.state()) continue; int idx = e.text().indexOf("=>"); if (idx < 0) continue; d.poem.set(i, E.state("get " + e.text().substring(0, idx).trim())); d.poem.add(i+1, E.state("result is " + e.text().substring(idx+2).trim())); } }
Began life as a copy of #1003567
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: | #1003568 |
Snippet name: | Engine Include / Let's do GMail |
Eternal ID of this version: | #1003568/1 |
Text MD5: | 40ecba97e919e64e6dd8436679e0de08 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-19 17:33:24 |
Source code size: | 546 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 832 |
Referenced in: | #1003562 - GMail Bot (Swing) #1003567 - Engine / Let's do GMail |