1 | static int bot_shortenAnswerForChatAndUploadFull_ultimateAnswerLimit = 500000; // max characters to upload to snippet |
2 | |
3 | static S bot_shortenAnswerForChatAndUploadFull(S botName, S text, S a) { |
4 | a = shorten(a, bot_shortenAnswerForChatAndUploadFull_ultimateAnswerLimit); |
5 | if (l(a) > stefansChat_messageLimit()) { |
6 | S title = botName + "'s answer to: " + text; |
7 | S id = ntUpload(botName + " for user", title, unSlackSnippet(a)); |
8 | a = snippetURL(id) + " | " + a; |
9 | } |
10 | ret a; |
11 | } |
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: | 425 / 463 |
Version history: | 2 change(s) |
Referenced in: | [show references] |