static void Main(string[] args) { var oscovaBot = new OscovaBot(); //Channel Tester provides OscovaTestDialog. var tester = new ChannelTester(Directory.GetCurrentDirectory()); oscovaBot.Dialogs.Add(tester.OscovaTestDialog); oscovaBot.Trainer.StartTraining(); var discordChannel = new DiscordChannel <OscovaBot>(oscovaBot, "DISCORD_BOT_USER_TOKEN"); discordChannel.Start().Wait(); Console.WriteLine("Your Oscova Bot is now hosted as a Discord Bot. Press any key to exit."); Console.ReadKey(); discordChannel.Stop().Wait(); }
static void Main(string[] args) { var oscovaBot = new OscovaBot(); //Channel Tester provides OscovaTestDialog. var tester = new ChannelTester(Directory.GetCurrentDirectory()); //oscovaBot.Dialogs.Add(tester.OscovaTestDialog); //Load the SIML Modern doc instead of using a channel tester. oscovaBot.Import(XDocument.Load("knowlege.siml")); oscovaBot.Trainer.StartTraining(); var discordChannel = new DiscordChannel <OscovaBot>(oscovaBot, "Token Here"); discordChannel.Start().Wait(); Console.WriteLine("Your Oscova Bot is now hosted as a Discord Bot. Press any key to exit."); Console.ReadKey(); discordChannel.Stop().Wait(); }