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

12
LINES

< > BotCompany Repo | #1009024 // postToStefansChat - returns true if successful

JavaX fragment (include)

static long postToStefansChat_lastPost = -60000;
static bool postToStefansChat_printStackTrace;

static bool postToStefansChat(S text) {
  if (empty(text)) false;
  if (postToStefansChat_printStackTrace) printStackTrace();
  text = shorten(text, stefansChat_messageLimit());
  print("CHAT>> " + text);
  bool ok = eq("OK", loadPage("http://botcompany.de/" + psI(#1008998) + "/raw/msg?botmark=1&message=" + urlencode(text)));
  postToStefansChat_lastPost = sysNow();
  ret ok;
}

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: #1009024
Snippet name: postToStefansChat - returns true if successful
Eternal ID of this version: #1009024/12
Text MD5: da6d02d7fa8c767ad2dda45c7e68afb0
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-02 16:32:24
Source code size: 488 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 641 / 649
Version history: 11 change(s)
Referenced in: [show references]