1 | // returns snippet ID |
2 | sS ai_bakeABot(S destID, LS thinkBotIDs) { |
3 | S srcID = #1017703; |
4 | |
5 | new StringBuilder buf; |
6 | buf.append(loadSnippet(srcID)).append("\n"); |
7 | |
8 | for (S modID : thinkBotIDs) { |
9 | L<S> tok = javaTokSnippet(modID); |
10 | dropTranslators(tok); |
11 | jreplace(tok, "set flag DynModule.", ""); |
12 | jreplace(tok, "AbstractTelegramThinkBot", "AbstractThinkBot"); |
13 | buf.append(join(tok)).append("\n"); |
14 | } |
15 | |
16 | editSnippet(destID, str(buf)); |
17 | transpileForServer(destID); |
18 | ret destID; |
19 | } |
Began life as a copy of #1017819
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018380 |
Snippet name: | ai_bakeABot |
Eternal ID of this version: | #1018380/1 |
Text MD5: | 55c442562c1e05839d6ca2d57764e660 |
Author: | stefan |
Category: | javax / think bot |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-23 17:00:28 |
Source code size: | 515 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 369 / 391 |
Referenced in: | [show references] |