Uses 5909K of libraries. Click here for Pure Java version (8859L/45K).
1 | !7 |
2 | |
3 | cmodule SpeechToDiscord extends DynDiscordHopper {
|
4 | transient TimedCache<S> last = new(5.0); |
5 | |
6 | start {
|
7 | dm_onUserUtterance(s -> {
|
8 | ret if !enabled || emptyOrEqAny(s, last!, "?"); |
9 | last.set(s); |
10 | postInChannel(preferredChannelID, s); |
11 | }); |
12 | } |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025621 |
| Snippet name: | Speech To Discord [sometimes LIVE as Dr. Asimov] |
| Eternal ID of this version: | #1025621/3 |
| Text MD5: | bf9137dae9f2bd63b90da360c8e1980d |
| Transpilation MD5: | 59dd0df96a737dc46f46ac8d30759354 |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-10-09 13:52:37 |
| Source code size: | 285 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 529 / 1069 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |