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

12
LINES

< > TinyBrain | #1009194 - Stefan's Chat: First Bot [WORKS]

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

Libraryless. Click here for Pure Java version (3561L/23K/80K).

!7

static long lastPost = 0;

p {
  stefansChat_onLine(voidfunc(S text) {
    if (sysNow() > lastPost+5000) {
      postToStefansChat(text + "? No!");
      lastPost = sysNow();
    }
  });
}

Author comment

Began life as a copy of #1009191

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1009194
Snippet name: Stefan's Chat: First Bot [WORKS]
Eternal ID of this version: #1009194/4
Text MD5: 9d5bd285bc414aa2ae203b8d2f3643c0
Transpilation MD5: 1f9fcb9bbf4198abc3bf830723999216
Author: stefan
Category: javax / chat
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-16 00:21:56
Source code size: 203 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 43 / 62
Version history: 3 change(s)
Referenced in: [show]