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

12
LINES

< > BotCompany Repo | #1013480 // postToSmartBotsChat_user - returns true if successful

JavaX fragment (include)

static long postToSmartBotsChat_user_lastPost = -60000;
static bool postToSmartBotsChat_user_printStackTrace;

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

Author comment

Began life as a copy of #1011978

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: #1013480
Snippet name: postToSmartBotsChat_user - returns true if successful
Eternal ID of this version: #1013480/4
Text MD5: 0948882828806f304be6ac629dcd3f02
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-07 14:31:46
Source code size: 543 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 413 / 387
Version history: 3 change(s)
Referenced in: [show references]