From ba2bf90340be041b3b2f797c171856d07f260ffe Mon Sep 17 00:00:00 2001 From: Dollan Date: Mon, 1 Apr 2024 18:30:03 +0200 Subject: [PATCH] fix: add hostname as embed description --- Helper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Helper.cs b/Helper.cs index 1810194..efae9ed 100644 --- a/Helper.cs +++ b/Helper.cs @@ -240,6 +240,8 @@ namespace CS2_SimpleAdmin string[] fieldValues = [$"[{targetName}]({targetcommunityUrl})", targetSteamId, time, reason, $"[{callerName}]({callercommunityUrl})"]; bool[] inlineFlags = [true, true, true, false, false]; + string? hostname = ConVar.Find("hostname")!.StringValue ?? CS2_SimpleAdmin._localizer?["sa_unknown"] ?? "Unknown"; + var embed = new EmbedBuilder { Title = penalty switch @@ -260,6 +262,8 @@ namespace CS2_SimpleAdmin _ => Color.Default, }, + Description = $"{hostname}", + Timestamp = DateTimeOffset.UtcNow };