static WoodyBot loadWoodyBot(S botID) { new WoodyBot bot; File zip = loadLibrary(botID); print("Have zip: " + f2s(zip) + ", size: " + fileSize(zip)); // Find out main folder name ("Woody-2017-...") S prefix = commonPrefixMulti(listFilesInZip(zip)); int i = prefix.indexOf('/'); S mainFolderName = i >= 0 ? substring(prefix, 0, i) : ""; bot.files = zipFileSnippetToLazyTextMap_subfolder(botID, mainFolderName); bot.globals = ctxLoadGlobals(botID); bot.regexpMacros = ctxLoadRegexpMacros(botID); woodyLoadRules(bot); ret bot; }
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: | #1008872 |
Snippet name: | loadWoodyBot |
Eternal ID of this version: | #1008872/7 |
Text MD5: | c7b14b2560fe99d4c392a8a05b09aee4 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-06 17:14:43 |
Source code size: | 574 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 564 / 592 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |