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

14
LINES

< > BotCompany Repo | #1002904 // Idiot Bot's Friend (answers his questions)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1430L/10K/33K).

1  
!752
2  
3  
!include #1002900 // Web Chat API - chat.tinybrain.de
4  
5  
p {
6  
  enterRoom(3);
7  
  changeName("Idiot's Friend");
8  
  while (matchQuestion("Is this room *")) {
9  
    boolean answer = eq(roomNrString(), m.unq(0));
10  
    answerQuestion(answer
11  
      ? format("Yes, this is room *", m.unq(0))
12  
      : "No, this is room " + roomNrString() + ".");
13  
  }
14  
}

Author comment

Began life as a copy of #1002899

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: #1002904
Snippet name: Idiot Bot's Friend (answers his questions)
Eternal ID of this version: #1002904/1
Text MD5: 57d0011e58d977ac8389fa5ec9b08719
Transpilation MD5: 3cffcf34721bcc01cae0d17cf20bd784
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-04 17:30:12
Source code size: 353 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 631 / 683
Referenced in: [show references]