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

11
LINES

< > BotCompany Repo | #1026813 // DynSockPuppetConvo - DynConvo + ">..." to make bot say something

JavaX fragment (include)

asclass DynSockPuppetConvo > DynConvo {
  JComponent bottomPart() { ret centerAndSouthWithMargin(super.bottomPart(), jlabel("(Type >... to make the bot say a line)")); }
  
  void sendInput2(S s) {
    new Matches m;
    if (startsWith_trim(s, ">", m))
      addPost(htmlEncode2(m.rest()), true);
    else
      super.sendInput2(s);
  }
}

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: 223 / 501
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)