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

16
LINES

< > BotCompany Repo | #1010028 // tb_mainServer - where snippets are loaded from. includes protocol, but no trailing slash

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4132L/24K).

sS tb_mainServer_default = "https://code.botcompany.de:9898";
static O tb_mainServer_override; // func -> S

static S tb_mainServer() {
  if (tb_mainServer_override != null) ret (S) callF(tb_mainServer_override);
  ret trim(loadTextFile(tb_mainServer_file(),
    tb_mainServer_default));
}

static File tb_mainServer_file() {
  ret getProgramFile(#1001638, "mainserver.txt");
}

static bool tb_mainServer_isDefault() {
  ret eq(tb_mainServer(), tb_mainServer_default);
}

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: #1010028
Snippet name: tb_mainServer - where snippets are loaded from. includes protocol, but no trailing slash
Eternal ID of this version: #1010028/8
Text MD5: 9d64cc3fd6995dc07f972b944ab5c5e4
Transpilation MD5: 3cdae74fd8d14832c5010939e0e5597e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 00:41:37
Source code size: 485 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 625 / 773
Version history: 7 change(s)
Referenced in: [show references]