diff --git a/Libraries/Core/Helpers/Dialogue/AbstractDialogChatBot.cs b/Libraries/Core/Helpers/Dialogue/AbstractDialogChatBot.cs index 3b5abf35..ca55a3bf 100644 --- a/Libraries/Core/Helpers/Dialogue/AbstractDialogChatBot.cs +++ b/Libraries/Core/Helpers/Dialogue/AbstractDialogChatBot.cs @@ -92,8 +92,5 @@ public abstract class AbstractDialogChatBot( _chatCommands.Add(chatCommand); } - protected string GetUnrecognizedCommandMessage() - { - throw new NotImplementedException(); - } + protected abstract string GetUnrecognizedCommandMessage(); } diff --git a/Libraries/Core/Helpers/Dialogue/CommandoDialogChatBot.cs b/Libraries/Core/Helpers/Dialogue/CommandoDialogChatBot.cs index 243e44d5..7af004f6 100644 --- a/Libraries/Core/Helpers/Dialogue/CommandoDialogChatBot.cs +++ b/Libraries/Core/Helpers/Dialogue/CommandoDialogChatBot.cs @@ -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."; } diff --git a/Libraries/Core/Helpers/Dialogue/SptDialogueChatBot.cs b/Libraries/Core/Helpers/Dialogue/SptDialogueChatBot.cs index dab7acc3..89d3b5e7 100644 --- a/Libraries/Core/Helpers/Dialogue/SptDialogueChatBot.cs +++ b/Libraries/Core/Helpers/Dialogue/SptDialogueChatBot.cs @@ -22,13 +22,13 @@ public class SptDialogueChatBot( SeasonalEventService _seasonalEventService, GiftService _giftService, LocalisationService _localisationService -) : AbstractDialogChatBot(_logger, _mailSendService, _chatCommands) +) : IDialogueChatBot { protected CoreConfig _coreConfig = _configServer.GetConfig(); protected WeatherConfig _weatherConfig = _configServer.GetConfig(); protected List _listOfMessages = ["hello", "hi", "sup", "yo", "hey"]; - public override UserDialogInfo GetChatBot() + public UserDialogInfo GetChatBot() { return new UserDialogInfo {