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

15
LINES

< > BotCompany Repo | #1019692 - Machine-to-machine Chat Bot [dev.]

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

Libraryless. Click here for Pure Java version (14654L/101K).

!7

module M2MChatBot > DynPrintLog {
  start {
    dm_vmBus_onMessage('gotFromPrivateMachineChat, voidfunc(fS sender, fS s) enter {
      switch to q();
      dm_m2mChat_send(sender, answer(sender, s));
    });
  }
  
  S answer(S sender, S s) {
    if "You there?" ret "Yo";
    null;
  }
}

download  show line numbers  debug dex   

Travelled to 7 computer(s): cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1019692
Snippet name: Machine-to-machine Chat Bot [dev.]
Eternal ID of this version: #1019692/4
Text MD5: c1edffddd14010b080ad3911b63fac67
Transpilation MD5: 55479573b31be6d50e94a543ce6817ad
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-19 15:05:19
Source code size: 306 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 1568
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1019692 & http://1019692.tinybrain.de