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

26
LINES

< > BotCompany Repo | #1022826 // AI_DomainsBot [dev.]

JavaX fragment (include)

sclass AI_DomainsBot > AttractorBot {
  concept Domain {
    S globalID = aGlobalIDUnlessLoading();
    S address;
  }
  
  Concepts concepts;
  
  *(Concepts *concepts) {
    standardAttractors(
      MatchAttractor("nice", r {
        say("Was that a compliment?");
        tempAttractor(YesAttractor(r {
          ai_saveCompliment(line);
          say("Thanks, saved");
        }));
      })
    );
  }

  // FLOW START
  
  public void run {
    say("I know " + n(countConcepts(concepts, Domain.class), "domain") + ".");
  }
}

Author comment

Began life as a copy of #1022819

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022826
Snippet name: AI_DomainsBot [dev.]
Eternal ID of this version: #1022826/7
Text MD5: 76e1fa28ebfcb38ab021fea28520b277
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-09 21:14:10
Source code size: 556 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 342 / 772
Version history: 6 change(s)
Referenced in: [show references]