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

8
LINES

< > BotCompany Repo | #1012105 // ai_spec_giveMe - also implemented (differently) in main bot

JavaX fragment (include)

static void ai_spec_giveMe(S chatLine) {
  S s = ai_textOfChatLine(chatLine);
  ret if s == null;
  ret if ai_hasAny("$X", "answers", chatLine);
  new Matches m;
  if (swic(s, "give me ", m) && swicOneOf(m.rest(), "a ", "an "))
    post(random(ai_texts("$X", "is", m.rest())), "answers", chatLine);
}

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: 426 / 423
Version history: 6 change(s)
Referenced in: [show references]