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

21
LINES

< > BotCompany Repo | #1020627 // Hey Dude

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (15328L/106K).

1  
!7
2  
3  
module HeyDude > DynPrintLogAndEnabled {
4  
  start {
5  
    doLater(random(5.0, 20.0), r action);
6  
  }
7  
  
8  
  void startAgain {
9  
    doLater(random(180.0), r action);
10  
  }
11  
  
12  
  void action enter {
13  
    if (enabled) pcall {
14  
      final AutoCloseable speech = dm_tempEnableSpeechRecognition("Hey Dude");
15  
      ownResource(speech);
16  
      doAfter(10.0, rEnter { dm_releaseResource(speech) });
17  
      dm_say("Hey dude!");
18  
    }
19  
    startAgain();
20  
  }
21  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020627
Snippet name: Hey Dude
Eternal ID of this version: #1020627/5
Text MD5: fd84949226bce6262c2343d460bedd90
Transpilation MD5: cca6e952a452e2c9c00d60a77827d2fc
Author: stefan
Category: javax / networking
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-29 00:33:12
Source code size: 458 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 302 / 654
Version history: 4 change(s)
Referenced in: [show references]