static void ai_activeSpec_answerOnChat(S s) { S response = ""; { lock ai_activeSpecLock(); if (has(s, "should be", "answered in the chat") && !has(s, "was", "answered in the chat")) { L<S> answers = ai_texts("$X", "answers external question", s); if (empty(answers)) answers = unquoteAll(ai_texts_multi("$X", "answers", ll(s, quote(s)))); //print("activeSpec: have answers " + answers); if (nempty(answers)) { ai_invalidateTriple(s, "should be", "answered in the chat"); response = s + "\n=> " + joinWithComma(answers); } } } if (nempty(response) && postToStefansChat(response)) post(s, "was", "answered in the chat"); }
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: | #1011654 |
| Snippet name: | ai_activeSpec_answerOnChat |
| Eternal ID of this version: | #1011654/16 |
| Text MD5: | cc05c444c8ad118f16ffbea6bb650139 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-13 17:58:45 |
| Source code size: | 717 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 738 / 779 |
| Version history: | 15 change(s) |
| Referenced in: | [show references] |