server-master/srcs/DiscordNotifier/Consumers/Player/LogPlayerLevelUpMessageFormatter.cs
2026-02-10 18:21:30 +01:00

17 lines
No EOL
637 B
C#

using DiscordNotifier.Formatting;
using Plugin.PlayerLogs.Messages.LevelUp;
namespace DiscordNotifier.Consumers.Player
{
public class LogPlayerLevelUpMessageFormatter : IDiscordLogFormatter<LogLevelUpCharacterMessage>
{
public LogType LogType => LogType.FARMING_LEVEL_UP;
public bool TryFormat(LogLevelUpCharacterMessage message, out string formattedString)
{
formattedString =
$"{message.CreatedAt:yyyy-MM-dd HH:mm:ss} | CHANNEL {message.ChannelId} | {message.CharacterName} {message.LevelType.ToUpperInvariant()} {message.Level}";
return true;
}
}
}