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)

1  
static long postToStefansChat_lastPost = -60000;
2  
static bool postToStefansChat_printStackTrace;
3  
4  
static bool postToStefansChat(S text) {
5  
  if (empty(text)) false;
6  
  if (postToStefansChat_printStackTrace) printStackTrace();
7  
  text = shorten(text, stefansChat_messageLimit());
8  
  print("CHAT>> " + text);
9  
  bool ok = eq("OK", loadPage("http://botcompany.de/" + psI(#1008998) + "/raw/msg?botmark=1&message=" + urlencode(text)));
10  
  postToStefansChat_lastPost = sysNow();
11  
  ret ok;
12  
}

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: 643 / 651
Version history: 11 change(s)
Referenced in: [show references]