static new Map<S, S> startBot_assignments; static void startBot(S botName, S botID) ctex { DialogIO bot = newFindBot(botName); if (bot != null) bot.close(); else { print("Bot " + quote(botName) + " not found. Starting " + botID); javaxBot(botID); waitForBotStartUp(botName); } } static void startBot(S botIDOrName) { S botID = startBot_assignments.get(botIDOrName); if (botID != null) startBot(botIDOrName, botID); else { S botName = getBotNameFromSnippet(botIDOrName); if (botName == null) fail("Bot name not found in source of " + botID); startBot(botName, botIDOrName); } }
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: | #1001365 |
Snippet name: | startBot |
Eternal ID of this version: | #1001365/2 |
Text MD5: | c8913132a20c28d0e9041c1f8db09533 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-13 22:40:27 |
Source code size: | 650 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 670 / 2280 |
Version history: | 1 change(s) |
Referenced in: | [show references] |