fixed some loose ends on dialogue chatbots
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user