Libraryless. Click here for Pure Java version (2217L/14K).
1 | svoid eleu_chatBots_copyQAs(S sourceBotID, S destBotID, long... qaIDs) { |
2 | virtual Concepts concepts = conceptsOfLoadedProgram_directRef(eleuBot(sourceBotID)); |
3 | O dest = eleuBot(destBotID); |
4 | if (concepts == null) fail("Source bot not found: " + sourceBotID); |
5 | if (dest == null) fail("Dest bot not found: " + destBotID); |
6 | for (long id : qaIDs) { |
7 | virtual QA qa = call(concepts, 'getConcept, id); |
8 | if (qa == null) continue with print("QA not found: " + id); |
9 | if (shortClassNameNeq QA(qa)) continue with print("Not a QA: " + qa); |
10 | print("Copying QA: " + id); |
11 | call(dest, 'importQA, qa); |
12 | } |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026274 |
Snippet name: | eleu_chatBots_copyQAs |
Eternal ID of this version: | #1026274/4 |
Text MD5: | 68ae8d222aa167f9b684b86aa2d32503 |
Transpilation MD5: | aaea7c7da47dca0826faa5160ee7e6f6 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-10 13:10:15 |
Source code size: | 620 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 282 |
Version history: | 3 change(s) |
Referenced in: | [show references] |