Exemplo n.º 1
0
        private void InitializeBot()
        {
            ZimmerBotConfiguration.Initialize();

            KnowledgeBase.InitializationMode initMode = DoClearStore
        ? KnowledgeBase.InitializationMode.Clear
        : KnowledgeBase.InitializationMode.RestoreIfExists;

            KnowledgeBase kb = new KnowledgeBase();

            kb.Initialize(initMode);
            kb.LoadFromFiles(NoahServiceSettings.BotSource);
            kb.SetupComplete();

            NoahBot       = new Bot(kb);
            NoahBotHandle = NoahBot.Run(new NoahBotEnvironment());
        }