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

13
LINES

< > BotCompany Repo | #1026803 // Trainable Bot v1 (just the sock puppet function)

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

Uses 911K of libraries. Click here for Pure Java version (6149L/29K).

!7

cmodule TrainableBot > 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);
  }
}

Author comment

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: 269 / 454
Version history: 7 change(s)
Referenced in: #1026808 - Parrot 1.1 (with functions list, runs each function invidiually)