1 | static void ai_activeSpec_answerOnChat(S s) {
|
2 | S response = ""; |
3 | { lock ai_activeSpecLock();
|
4 | if (has(s, "should be", "answered in the chat") |
5 | && !has(s, "was", "answered in the chat")) {
|
6 | L<S> answers = ai_texts("$X", "answers external question", s);
|
7 | if (empty(answers)) |
8 | answers = unquoteAll(ai_texts_multi("$X", "answers", ll(s, quote(s))));
|
9 | //print("activeSpec: have answers " + answers);
|
10 | if (nempty(answers)) {
|
11 | ai_invalidateTriple(s, "should be", "answered in the chat"); |
12 | response = s + "\n=> " + joinWithComma(answers); |
13 | } |
14 | } |
15 | } |
16 | if (nempty(response) && postToStefansChat(response)) |
17 | post(s, "was", "answered in the chat"); |
18 | } |
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: | 740 / 781 |
| Version history: | 15 change(s) |
| Referenced in: | [show references] |