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)

1  
// returns bot class if it is started here, null otherwise
2  
static Class startBotHere(S botName, S botID) ctex {
3  
  DialogIO bot = newFindBot(botName);
4  
  if (bot != null) {
5  
    bot.close();
6  
    null;
7  
  } else {
8  
    print("Bot " + quote(botName) + " not found. Starting " + botID);
9  
    ret runSubBot(botID);
10  
  }
11  
}

Author comment

Began life as a copy of #1001365

download  show line numbers  debug dex  old transpilations   

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

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: 489 / 474
Version history: 2 change(s)
Referenced in: [show references]