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).

!7

cmodule AndroidCatBot > DynPrintLogAndEnabled {
  start {
    dm_vmBus_onMessage_q androidCatInput(voidfunc(O mod, S input) {
      if (!enabled) ret;
      print("Have " + n2(dm_attractorBotModules(), "bot module"));
      print("> " + input);
      dm_sendToAllAttractorBots(input, voidfunc(S s) {
        print("< " + s);
        vmBus_send androidCatShouldSay(s);
      });
    });
  }
}

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: 245 / 9530
Version history: 4 change(s)
Referenced in: [show references]