Skip to content

Commit

Permalink
Fix ALICE Chatbot loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblocks committed Oct 20, 2021
1 parent b860066 commit 3cd5869
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/Radegast.Plugin.Alice/Alice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

using System;
using System.Collections;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using OpenMetaverse;
Expand Down Expand Up @@ -300,7 +301,10 @@ private bool LoadALICE()
{
isAcceptingUserInput = false
};
Alice.loadSettings();
string configFile = Path.Combine(
Directory.GetCurrentDirectory(),
"aiml_config", "Settings.xml");
Alice.loadSettings(configFile);
var loader = new AIMLbot.Utils.AIMLLoader(Alice);
Alice.isAcceptingUserInput = false;
loader.loadAIML(Alice.PathToAIML);
Expand Down

0 comments on commit 3cd5869

Please sign in to comment.