static long postToSmartBotsChat_lastPost = -60000; static bool postToSmartBotsChat_printStackTrace; static new ThreadLocal<Bool> postToSmartBotsChat_silently; static bool postToSmartBotsChat(S text) { bool silently = optBoolParam(postToSmartBotsChat_silently); if (empty(text)) false; if (postToSmartBotsChat_printStackTrace) printStackTrace(); text = shorten(text, stefansChat_messageLimit()); if (!silently) print("CHAT>> " + text); S url = "http://ai1.space/" + psI(#1011975) + "/raw/msg?botmark=1&message=" + urlencode(text); bool ok = eq("OK", silently ? loadPageSilently(url) : loadPage(url)); postToSmartBotsChat_lastPost = sysNow(); ret ok; }
Began life as a copy of #1009024
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: | #1011978 |
Snippet name: | postToSmartBotsChat - returns true if successful |
Eternal ID of this version: | #1011978/6 |
Text MD5: | c9149d377cca3826ced23761611c4e45 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-06 22:50:25 |
Source code size: | 683 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 461 / 506 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013480 - postToSmartBotsChat_user - returns true if successful #1013860 - silentlyPostToSmartBotsChat - returns true if successful |