1 | static WoodyBot loadWoodyBot(S botID) { |
2 | new WoodyBot bot; |
3 | File zip = loadLibrary(botID); |
4 | print("Have zip: " + f2s(zip) + ", size: " + fileSize(zip)); |
5 | |
6 | // Find out main folder name ("Woody-2017-...") |
7 | S prefix = commonPrefixMulti(listFilesInZip(zip)); |
8 | int i = prefix.indexOf('/'); |
9 | S mainFolderName = i >= 0 ? substring(prefix, 0, i) : ""; |
10 | |
11 | bot.files = zipFileSnippetToLazyTextMap_subfolder(botID, mainFolderName); |
12 | bot.globals = ctxLoadGlobals(botID); |
13 | bot.regexpMacros = ctxLoadRegexpMacros(botID); |
14 | |
15 | woodyLoadRules(bot); |
16 | ret bot; |
17 | } |
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: | 565 / 593 |
Version history: | 6 change(s) |
Referenced in: | [show references] |