Esempio n. 1
0
 public static void Main(string[] args)
 {
     Console.WriteLine("going to test PLE");
     //initialize interface
     PreLudeInterface pi = new PreLudeInterface();
     //define path to mind file
     pi.loadedMind = "mind.mdu";
     //start your engine ...
     pi.initializeEngine();
     //here we go:
     Console.WriteLine("You say: " + "hello Prelude");
     Console.WriteLine("Prelude says: " + pi.chatWithPrelude("hello Prelude"));
     pi.stopPreludeEngine();
 }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("# worldz first prelude im server rulez!!\n");
            timer = new System.Timers.Timer();
            timer.Elapsed += new System.Timers.ElapsedEventHandler(updateContacts);
            MainClass mc = new MainClass();
            //initialize interface
            pi = new PreLudeInterface();
            pi.proactiveMode = false;
            //define path to mind file
            pi.loadedMind = "mind.mdu";
            //start your engine ...
            pi.initializeEngine();

            mc.startPreludeMSNServer();
            Console.ReadLine();
        }
Esempio n. 3
0
        public MainForm()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //initialize interface
            pi = new PreLudeInterface();
            pi.proactiveMode = false;
            //define path to mind file
            pi.loadedMind = "mind.mdu";
            //start your engine ...
            pi.initializeEngine();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
Esempio n. 4
0
 public static void Main(string[] args)
 {
     Console.WriteLine("Prelude@# (0.5.0) command line version, welcome user!");
     Console.WriteLine("if you want to stop chatting, enter: 'exit'");
     //initialize interface
     PreLudeInterface pi = new PreLudeInterface();
     //define path to mind file
     pi.loadedMind = "mind.mdu";
     pi.usesInvalidWordList = false;
     //start your engine ...
     pi.initializeEngine();
     pi.maxMatchesAllowed = 3;
     pi.setProactiveMode(true);
     //here we go:
     while(!ind.StartsWith("exit"))
     {
         Console.Write("You say: ");
         ind = Console.ReadLine();
         Console.WriteLine("Prelude says: " + pi.chatWithPrelude(ind));
     }
     pi.stopPreludeEngine();
 }