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

14
LINES

< > BotCompany Repo | #1003092 // Simple RoboChat Bot (LIVE)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (874L/6K/21K).

1  
!752
2  
3  
p {
4  
  simpleChatListen();
5  
  simpleChatPresence("Test Answer Bot");
6  
}
7  
8  
static void process(L msgs) {
9  
  for (O msg : msgs) {
10  
    S text = getString(msg, "text");
11  
    if (neq("ok", simpleChatPost("Test Answer Bot", "I counted " + n(l(text), "character"))))
12  
      ret;
13  
  }
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003092
Snippet name: Simple RoboChat Bot (LIVE)
Eternal ID of this version: #1003092/1
Text MD5: 69a2584dbc400a9ebdb5d704e4d84cb7
Transpilation MD5: 1cfc9a3126bf665e719c36aafd7dd508
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-05-01 17:41:04
Source code size: 289 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 664 / 688
Referenced in: [show references]