Uses 911K of libraries. Click here for Pure Java version (6149L/29K).
1 | !7 |
2 | |
3 | cmodule TrainableBot > DynConvo { |
4 | JComponent bottomPart() { ret centerAndSouthWithMargin(super.bottomPart(), jlabel("(Type >... to make the bot say a line)")); } |
5 | |
6 | void sendInput2(S s) { |
7 | new Matches m; |
8 | if (startsWith_trim(s, ">", m)) |
9 | addPost(htmlEncode2(m.rest()), true); |
10 | else |
11 | super.sendInput2(s); |
12 | } |
13 | } |
Began life as a copy of #1026800
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026803 |
Snippet name: | Trainable Bot v1 (just the sock puppet function) |
Eternal ID of this version: | #1026803/8 |
Text MD5: | d83376f1a7e02adaac60653ad379f35d |
Transpilation MD5: | 58691ebe96bfbb6406bfdd8012fc595f |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-23 17:27:29 |
Source code size: | 348 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 270 / 456 |
Version history: | 7 change(s) |
Referenced in: | [show references] |