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

23
LINES

< > BotCompany Repo | #1002919 // German Assistant 2 ("Kannst du mich sehen?")

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1905L/13K/42K).

!752

!include #1002900 // Web Chat API - chat.tinybrain.de

p {
  thread "German Assistant 2" {
    //printIncoming();
    changeName("Assistent");
    while (loop()) {
      while (matchQuestion_dropping("Kannst mich sehen?", 
        "hallo du ey hey hi assistent computer bot KI AI sag doch mal mir na ja so yo denn eigentlich und noch überhaupt in der liste")) {
        S name = whoAsks();
        L<S> nicks = getPresentNicks();
        S answer;
        if (nicks.contains(name))
          answer = "Ja!";
        else
          answer = "Nein, du bist nicht (mehr?) in der Nick-Liste.";
        answerQuestion(answer);
      }
    }
  }
}

Author comment

Began life as a copy of #1002907

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002919
Snippet name: German Assistant 2 ("Kannst du mich sehen?")
Eternal ID of this version: #1002919/1
Text MD5: 1249b4774c807543e45845f8ca483aa9
Transpilation MD5: 14e5898231145ed5287f0ea54f4c7168
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-05 20:50:56
Source code size: 672 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 587 / 946
Referenced in: [show references]