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

15
LINES

< > BotCompany Repo | #1023294 // Android Cat Connector - connect all loaded DynAttractorBots to Android cat

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (4252L/21K).

1  
!7
2  
3  
cmodule AndroidCatBot > DynPrintLogAndEnabled {
4  
  start {
5  
    dm_vmBus_onMessage_q androidCatInput(voidfunc(O mod, S input) {
6  
      if (!enabled) ret;
7  
      print("Have " + n2(dm_attractorBotModules(), "bot module"));
8  
      print("> " + input);
9  
      dm_sendToAllAttractorBots(input, voidfunc(S s) {
10  
        print("< " + s);
11  
        vmBus_send androidCatShouldSay(s);
12  
      });
13  
    });
14  
  }
15  
}

Author comment

Began life as a copy of #1023154

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: #1023294
Snippet name: Android Cat Connector - connect all loaded DynAttractorBots to Android cat
Eternal ID of this version: #1023294/5
Text MD5: 3f4e9070eab6dd4dfbca8b6e48f38417
Transpilation MD5: 5d78142f018a08b894e86f6eb6d3675e
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-24 17:49:01
Source code size: 409 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 9531
Version history: 4 change(s)
Referenced in: [show references]