Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1005449 - startBotHere - start bot in this VM if it isn't running in any VM

JavaX fragment (include)

// returns bot class if it is started here, null otherwise
static Class startBotHere(S botName, S botID) ctex {
  DialogIO bot = newFindBot(botName);
  if (bot != null) {
    bot.close();
    null;
  } else {
    print("Bot " + quote(botName) + " not found. Starting " + botID);
    ret runSubBot(botID);
  }
}

Author comment

Began life as a copy of #1001365

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1005449
Snippet name: startBotHere - start bot in this VM if it isn't running in any VM
Eternal ID of this version: #1005449/3
Text MD5: c57b0a88c5a78d7c40e36b48bba1e7be
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-13 22:40:56
Source code size: 320 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 312 / 286
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1005449 & http://1005449.tinybrain.de