1 | static void ai_spec_giveMe(S chatLine) { |
2 | S s = ai_textOfChatLine(chatLine); |
3 | ret if s == null; |
4 | ret if ai_hasAny("$X", "answers", chatLine); |
5 | new Matches m; |
6 | if (swic(s, "give me ", m) && swicOneOf(m.rest(), "a ", "an ")) |
7 | post(random(ai_texts("$X", "is", m.rest())), "answers", chatLine); |
8 | } |
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: | #1012105 |
Snippet name: | ai_spec_giveMe - also implemented (differently) in main bot |
Eternal ID of this version: | #1012105/7 |
Text MD5: | ce809b941901170acd5c7019c0377f63 |
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-14 22:08:07 |
Source code size: | 307 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 547 / 543 |
Version history: | 6 change(s) |
Referenced in: | [show references] |