static int bot_shortenAnswerForChatAndUploadFull_ultimateAnswerLimit = 500000; // max characters to upload to snippet static S bot_shortenAnswerForChatAndUploadFull(S botName, S text, S a) { a = shorten(a, bot_shortenAnswerForChatAndUploadFull_ultimateAnswerLimit); if (l(a) > stefansChat_messageLimit()) { S title = botName + "'s answer to: " + text; S id = ntUpload(botName + " for user", title, unSlackSnippet(a)); a = snippetURL(id) + " | " + a; } ret a; }
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: | #1012635 |
Snippet name: | bot_shortenAnswerForChatAndUploadFull |
Eternal ID of this version: | #1012635/3 |
Text MD5: | 1ada173e82da1c42531d17c0a7f75144 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-08 18:37:10 |
Source code size: | 491 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 424 / 461 |
Version history: | 2 change(s) |
Referenced in: | [show references] |