1 | asclass DynSockPuppetConvo > DynConvo { |
2 | JComponent bottomPart() { ret centerAndSouthWithMargin(super.bottomPart(), jlabel("(Type >... to make the bot say a line)")); } |
3 | |
4 | void sendInput2(S s) { |
5 | new Matches m; |
6 | if (startsWith_trim(s, ">", m)) |
7 | addPost(htmlEncode2(m.rest()), true); |
8 | else |
9 | super.sendInput2(s); |
10 | } |
11 | } |
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: | #1026813 |
Snippet name: | DynSockPuppetConvo - DynConvo + ">..." to make bot say something |
Eternal ID of this version: | #1026813/1 |
Text MD5: | 02d9cd832551c36189b37c109c9b46ff |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-23 20:03:32 |
Source code size: | 348 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 222 / 501 |
Referenced in: | [show references] |