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: 601 / 2822
Version history: 10 change(s)
Referenced in: #1014921 - serveLongPoll
#1014925 - Cat Thought Bot (phone to phone)
#1016548 - OS Instances Long Poll Bot [LIVE, but we're using the socket version]
#1023280 - Android Controller (port 8082, control the cat on the phone, OLD version for single user)
#3000526 - Smart Bot's answer to: !fresh latestPrograms()