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).

1  
!7
2  
3  
sS rules = [=[
4  
  keyword greeting => say "Hello, welcome to Manisha Mozumder (Business Consulting Services)!\nHow can I help you?"
5  
  
6  
  keyword location => say "We are located in Germany. But we are a global company. So, we serve all over the world."
7  
  
8  
  keyword services => say [[Our Specializations are: 
9  
  a. 4 Phases consulting services 
10  
  b. Business Plan 
11  
  c. Business Problem Solving]]
12  
   
13  
  keyword phases => say [[We consult in four phases like: 
14  
  a. Incubator 
15  
  b. Planning 
16  
  c. Implementation & Market Entry 
17  
  d. Evaluation
18  
  
19  
  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.]]
20  
  
21  
  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.]]
22  
  
23  
  // How long it takes to finish a business plan?
24  
  
25  
  keyword "how long, duration" => say "7‐15 working days depending on the business/products/services"
26  
   
27  
  // 7. How can I contact with you? Or Can I have an appointment? 
28  
  
29  
  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."
30  
  
31  
  // 8. Can you tell me about the sections of Business Plan? Or What are the parts which would be added in a business plan? 
32  
  
33  
  keyword "sections, parts" => say [[There would be 4‐5 parts in general. Those are:
34  
   
35  
  Core Planning, Marketing Plan, Strategies for Personnel Planning and Financials. 
36  
  
37  
  Please ask for quote to know more details.]]
38  
            
39  
  don't know => say "Please ask for quote to know about it."
40  
  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.]]
41  
  
42  
  theory test {
43  
    on "fjdiojgogfdo" expect (don't know)
44  
  }
45  
  
46  
  afterwards => proc {
47  
    unless (say $x):
48  
      don't know
49  
  }
50  
]=];
51  
52  
cmodule MMORules > DynPrintLog {
53  
  start-thread {
54  
    PhilosophyBot1 bot = new(rules);
55  
    bot.run();
56  
    bot.openTheory("test");
57  
    for (SS map : bot.matchFacts("on $a expect $b")) {
58  
      PhilosophyBot1 bot2 = new(rules);
59  
      bot.run();
60  
      bot.addFact(bot.format("input $a", map));
61  
      bot.addFact(bot.format("expect $b", map));
62  
      bot.run();
63  
      bot.addFact("afterwards");
64  
      bot.run();
65  
      bot.checkExpectations();
66  
    }
67  
  }
68  
}

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: 285 / 527
Version history: 6 change(s)
Referenced in: [show references]