示例#1
0
 public static int Main(String[] args)
 {
     pl = new Parlogike();
     pl.parse("./samples/main.plk");
     pl.executeDirectives(true);
     StartListening();
     return(0);
 }
示例#2
0
 public string Get(string message)
 {
     if (!botstarted)
     {
         Console.WriteLine("parsing");
         bot = new Parlogike();
         bot.parse("bots/ivanka.plk");
         bot.executeDirectives(true);
         //bot.respond("warmup",true,"testuid");
         botstarted = true;
     }
     return(bot.respond(message, true, "testuid"));
 }
示例#3
0
 public BotIface(string corpus)
 {
     parlogike = new Parlogike();
     parlogike.parse(corpus);
     parlogike.executeDirectives(true);
 }