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

16
LINES

< > BotCompany Repo | #1001394 // boss function

JavaX fragment (include)

1  
 static String boss(S line) {
2  
    try {
3  
      //S s = sendToLocalBotOpt("Boss Bot", line);
4  
      DialogIO io = talkTo(4990); // Boss Bot port
5  
      io.readLine();
6  
      io.sendLine(line);
7  
      S s = io.readLine();
8  
      new Matches m;
9  
      if (match3("text: *", s, m))
10  
        return unquote(m.m[0]);
11  
      return null;
12  
    } catch (Exception e) {
13  
      //e.printStackTrace();
14  
      return null;
15  
    }
16  
  }

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: #1001394
Snippet name: boss function
Eternal ID of this version: #1001394/1
Text MD5: c6c0f44458191ab51a8b637a9d4821a0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-13 20:01:25
Source code size: 422 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 670 / 3515
Referenced in: [show references]