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

16
LINES

< > BotCompany Repo | #1014866 // Cat Ear Long Poll Bot

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

Download Jar. Libraryless. Click here for Pure Java version (2231L/14K).

!7

static long timeout = 60000;
static int interval = 50;
sS listName = "Katze | Things the phone should say";

html {
  if (!webAuthed(params)) { sleep(timeout); ret ""; }
  
  ret serveLongPoll(timeout, interval, func {
    S things = fullTrim(mL_onServer_rawListText_opt(listName));
    if (empty(things)) null;
    call(getBot(#1013927), 'export_setListText, listName, "");
    ret things;
  });
}

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: #1014866
Snippet name: Cat Ear Long Poll Bot
Eternal ID of this version: #1014866/11
Text MD5: 3e5899fea4160ec92b189e3b99dd504d
Transpilation MD5: b8c6e48f98381ec4db6b769fafb38e5c
Author: stefan
Category: javax / web / a.i. / android
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-12 17:48:04
Source code size: 417 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 465 / 2450
Version history: 10 change(s)
Referenced in: [show references]