Files
SPT-Server-Build/Libraries/Core/Helpers/Dialogue/SptMessageHandlers/LoveYouChatMessageHandler.cs
T
2025-01-28 17:21:34 +00:00

41 lines
1008 B
C#

using Core.Models.Eft.Common;
using Core.Models.Eft.Profile;
using Core.Services;
using Core.Utils;
using SptCommon.Annotations;
namespace Core.Helpers.Dialogue.SptMessageHandlers;
[Injectable]
public class LoveYouChatMessageHandler(
MailSendService _mailSendService,
RandomUtil _randomUtil
) : IChatMessageHandler
{
public int GetPriority()
{
return 100;
}
public bool CanHandle(string message)
{
return message.ToLower() == "love you";
}
public void Process(string sessionId, UserDialogInfo sptFriendUser, PmcData sender)
{
_mailSendService.SendUserMessageToPlayer(
sessionId,
sptFriendUser,
_randomUtil.GetArrayValue([
"That's quite forward but i love you too in a purely chatbot-human way",
"I love you too buddy :3!",
"uwu",
$"love you too {sender?.Info?.Nickname}",
]),
[],
null
);
}
}