fixed some loose ends on dialogue chatbots

This commit is contained in:
Alex
2025-01-26 20:04:01 +00:00
parent 80f7f12b7f
commit f4f4779488
3 changed files with 4 additions and 7 deletions
@@ -92,8 +92,5 @@ public abstract class AbstractDialogChatBot(
_chatCommands.Add(chatCommand);
}
protected string GetUnrecognizedCommandMessage()
{
throw new NotImplementedException();
}
protected abstract string GetUnrecognizedCommandMessage();
}
@@ -36,7 +36,7 @@ public class CommandoDialogChatBot(
};
}
protected string GetUnrecognizedCommandMessage()
protected override string GetUnrecognizedCommandMessage()
{
return "I'm sorry soldier, I don't recognize the command you are trying to use! Type \"help\" to see available commands.";
}
@@ -22,13 +22,13 @@ public class SptDialogueChatBot(
SeasonalEventService _seasonalEventService,
GiftService _giftService,
LocalisationService _localisationService
) : AbstractDialogChatBot(_logger, _mailSendService, _chatCommands)
) : IDialogueChatBot
{
protected CoreConfig _coreConfig = _configServer.GetConfig<CoreConfig>();
protected WeatherConfig _weatherConfig = _configServer.GetConfig<WeatherConfig>();
protected List<string> _listOfMessages = ["hello", "hi", "sup", "yo", "hey"];
public override UserDialogInfo GetChatBot()
public UserDialogInfo GetChatBot()
{
return new UserDialogInfo
{