public static int Main(String[] args) { pl = new Parlogike(); pl.parse("./samples/main.plk"); pl.executeDirectives(true); StartListening(); return(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")); }
public BotIface(string corpus) { parlogike = new Parlogike(); parlogike.parse(corpus); parlogike.executeDirectives(true); }