From 13f5b63c59e4fe1d6d861d3c9637b3ae075952c8 Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 13 Sep 2021 01:53:06 -0400 Subject: [PATCH] feat: add last global restart time to pk;stats card --- PluralKit.Bot/Commands/Misc.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Misc.cs b/PluralKit.Bot/Commands/Misc.cs index ed12d6fc..d40b07ff 100644 --- a/PluralKit.Bot/Commands/Misc.cs +++ b/PluralKit.Bot/Commands/Misc.cs @@ -114,8 +114,8 @@ namespace PluralKit.Bot .Field(new("Memory usage", $"{memoryUsage / 1024 / 1024} MiB", true)) .Field(new("Latency", $"API: {apiLatency.TotalMilliseconds:F0} ms, shard: {shardInfo.ShardLatency.Milliseconds} ms", true)) .Field(new("Total numbers", $"{totalSystems:N0} systems, {totalMembers:N0} members, {totalGroups:N0} groups, {totalSwitches:N0} switches, {totalMessages:N0} messages")) - .Timestamp(now.ToDateTimeOffset().ToString("O")) - .Footer(new($"PluralKit {BuildInfoService.Version} • https://github.com/xSke/PluralKit")); ; + .Timestamp(Process.GetCurrentProcess().StartTime.ToString("O")) + .Footer(new($"PluralKit {BuildInfoService.Version} • https://github.com/xSke/PluralKit • Last restarted: ")); ; await ctx.Rest.EditMessage(msg.ChannelId, msg.Id, new MessageEditRequest { Content = "", Embed = embed.Build() }); }