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

68
LINES

< > BotCompany Repo | #1025988 // MMO Rules Spike [dev.]

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

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

!7

sS rules = [=[
  keyword greeting => say "Hello, welcome to Manisha Mozumder (Business Consulting Services)!\nHow can I help you?"
  
  keyword location => say "We are located in Germany. But we are a global company. So, we serve all over the world."
  
  keyword services => say [[Our Specializations are: 
  a. 4 Phases consulting services 
  b. Business Plan 
  c. Business Problem Solving]]
   
  keyword phases => say [[We consult in four phases like: 
  a. Incubator 
  b. Planning 
  c. Implementation & Market Entry 
  d. Evaluation
  
  Our main purpose of four phases consulting services is to support the business from the route level to market entry. We also provide services after that if our customers demand that.]]
  
  keyword quote => say [[Please email at manisha@mmozumder.com to get a quote for your expected service or click on "ask for quote" on our website.]]
  
  // How long it takes to finish a business plan?
  
  keyword "how long, duration" => say "7‐15 working days depending on the business/products/services"
   
  // 7. How can I contact with you? Or Can I have an appointment? 
  
  keyword "contact, appointment" => say "Please give us your expected date, time and mode of communication (Phone Number/Whatsapp/Skype address/Email Address). Someone from our office will contact with you on that time."
  
  // 8. Can you tell me about the sections of Business Plan? Or What are the parts which would be added in a business plan? 
  
  keyword "sections, parts" => say [[There would be 4‐5 parts in general. Those are:
   
  Core Planning, Marketing Plan, Strategies for Personnel Planning and Financials. 
  
  Please ask for quote to know more details.]]
            
  don't know => say "Please ask for quote to know about it."
  don't know => say [[Please give us your expected date, time and mode of communication (Phone Number/Whatsapp/Skype address/Email Address). Someone from our office will contact with you soon.]]
  
  theory test {
    on "fjdiojgogfdo" expect (don't know)
  }
  
  afterwards => proc {
    unless (say $x):
      don't know
  }
]=];

cmodule MMORules > DynPrintLog {
  start-thread {
    PhilosophyBot1 bot = new(rules);
    bot.run();
    bot.openTheory("test");
    for (SS map : bot.matchFacts("on $a expect $b")) {
      PhilosophyBot1 bot2 = new(rules);
      bot.run();
      bot.addFact(bot.format("input $a", map));
      bot.addFact(bot.format("expect $b", map));
      bot.run();
      bot.addFact("afterwards");
      bot.run();
      bot.checkExpectations();
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025988
Snippet name: MMO Rules Spike [dev.]
Eternal ID of this version: #1025988/7
Text MD5: 3b154d769e246bfb251f926efae1f198
Transpilation MD5: 00644b05ca580e84ce8c325403b451a2
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-05 14:57:01
Source code size: 2622 bytes / 68 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 525
Version history: 6 change(s)
Referenced in: [show references]