Fixed being unable to disable chatbots
This commit is contained in:
@@ -121,7 +121,7 @@ public class DialogueController(
|
|||||||
foreach (var bot in DialogueChatBots)
|
foreach (var bot in DialogueChatBots)
|
||||||
{
|
{
|
||||||
var botData = bot.GetChatBot();
|
var botData = bot.GetChatBot();
|
||||||
if (chatBotConfig.EnabledBots.ContainsKey(botData.Id))
|
if (chatBotConfig.EnabledBots.TryGetValue(botData.Id, out var isEnabled) && isEnabled)
|
||||||
{
|
{
|
||||||
activeBots.Add(botData);
|
activeBots.Add(botData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user