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

10
LINES

< > BotCompany Repo | #1010744 // stefansChat_onLine_safe

JavaX fragment (include)

1  
please include function postToStefansChat.
2  
3  
static double stefansChat_onLine_safe_delay = 1; // prohibits answering your own questions - TODO: improve
4  
5  
static void stefansChat_onLine_safe(fO f) {
6  
  stefansChat_onLine(voidfunc(S text) {
7  
    if (sysNow() > postToStefansChat_lastPost+toMS(stefansChat_onLine_safe_delay))
8  
      callF(f, text);
9  
  });
10  
}

Author comment

Began life as a copy of #1009193

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: #1010744
Snippet name: stefansChat_onLine_safe
Eternal ID of this version: #1010744/4
Text MD5: 8cd8b2b70400dbdaa586e42c432f7dc8
Author: stefan
Category: javax / chat
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-04 17:43:47
Source code size: 357 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 436 / 482
Version history: 3 change(s)
Referenced in: [show references]