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

!752

p {
  simpleChatListen();
  simpleChatPresence("Test Answer Bot");
}

static void process(L msgs) {
  for (O msg : msgs) {
    S text = getString(msg, "text");
    if (neq("ok", simpleChatPost("Test Answer Bot", "I counted " + n(l(text), "character"))))
      ret;
  }
}

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: 663 / 686
Referenced in: [show references]