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

12
LINES

< > BotCompany Repo | #1013508 // postToStefansChat_user - returns true if successful

JavaX fragment (include)

static long postToStefansChat_user_lastPost = -60000;
static bool postToStefansChat_user_printStackTrace;

static bool postToStefansChat_user(S text) {
  if (empty(text)) false;
  if (postToStefansChat_user_printStackTrace) printStackTrace();
  text = shorten(text, stefansChat_messageLimit());
  print("CHAT>> " + text);
  bool ok = eq("OK", loadPage("https://botcompany.de/" + psI(#1008998) + "/raw/msg" + htmlQuery(message := text, _pass := muricaPassword())));
  postToStefansChat_user_lastPost = sysNow();
  ret ok;
}

Author comment

Began life as a copy of #1013480

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: #1013508
Snippet name: postToStefansChat_user - returns true if successful
Eternal ID of this version: #1013508/1
Text MD5: 93065783d47ba4aaf8a0942d57b1a993
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-08 01:02:29
Source code size: 533 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 308
Referenced in: [show references]