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

35 lines
812 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 SptMessageHandler(
MailSendService _mailSendService,
RandomUtil _randomUtil) : IChatMessageHandler
{
public int GetPriority()
{
return 100;
}
public bool CanHandle(string message)
{
return message.ToLower() == "spt";
}
public void Process(string sessionId, UserDialogInfo sptFriendUser, PmcData sender)
{
_mailSendService.SendUserMessageToPlayer(
sessionId,
sptFriendUser,
_randomUtil.GetArrayValue(["Its me!!", "spt? i've heard of that project"]),
[],
null
);
}
}