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

14
LINES

< > BotCompany Repo | #1029582 // ai_makeWebChatBot

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5719L/41K).

static PairS ai_makeWebChatBot(S name) {
  S botID = #1028922, faqID = #1028921;
  LS botSrc = javaTok(assertNempty(loadSnippet(botID)));
  LS faqSrc = javaTok(assertNempty(loadSnippet(faqID)));
  S newBotID = createSnippet("", name + " Chat Bot", snippetType(botID));
  S newFaqID = createSnippet("", name + " Answers DB", snippetType(faqID));
  addTagToSnippet(newBotID, "butter");
  addTagToSnippet(newFaqID, "butter");
  jreplace(botSrc, faqID, newFaqID);
  jreplace(faqSrc, botID, newBotID);
  editSnippet(newBotID, join(botSrc));
  editSnippet(newFaqID, join(faqSrc));
  ret pair(newBotID, newFaqID);
}

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: #1029582
Snippet name: ai_makeWebChatBot
Eternal ID of this version: #1029582/4
Text MD5: 83a38e9d77e18ab2c3e1bc6e25fe3f5e
Transpilation MD5: a48e6332db926fc64f4b7919ce423396
Author: stefan
Category: javax / web chat bots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-25 20:47:51
Source code size: 621 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 235 / 335
Version history: 3 change(s)
Referenced in: [show references]