1 | sclass AI_DomainsBot > AttractorBot {
|
2 | concept Domain {
|
3 | S globalID = aGlobalIDUnlessLoading(); |
4 | S address; |
5 | } |
6 | |
7 | Concepts concepts; |
8 | |
9 | *(Concepts *concepts) {
|
10 | standardAttractors( |
11 | MatchAttractor("nice", r {
|
12 | say("Was that a compliment?");
|
13 | tempAttractor(YesAttractor(r {
|
14 | ai_saveCompliment(line); |
15 | say("Thanks, saved");
|
16 | })); |
17 | }) |
18 | ); |
19 | } |
20 | |
21 | // FLOW START |
22 | |
23 | public void run {
|
24 | say("I know " + n(countConcepts(concepts, Domain.class), "domain") + ".");
|
25 | } |
26 | } |
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: | 537 / 977 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |