feat: show bot version on startup and in /catalogger ping

This commit is contained in:
sam 2024-10-31 01:26:50 +01:00
parent a22057b9fa
commit 5ac607fd0a
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
6 changed files with 66 additions and 4 deletions

View file

@ -176,7 +176,7 @@ public class MetaCommands(
var embed = new EmbedBuilder()
.WithColour(DiscordUtils.Purple)
.WithFooter(
$"{RuntimeInformation.FrameworkDescription} on {RuntimeInformation.RuntimeIdentifier}"
$"{BuildInfo.Version}, {RuntimeInformation.FrameworkDescription} on {RuntimeInformation.RuntimeIdentifier}"
)
.WithCurrentTimestamp();
embed.AddField(
@ -209,8 +209,7 @@ public class MetaCommands(
"Numbers",
$"{CataloggerMetrics.MessagesStored.Value:N0} messages "
+ $"from {guildCache.Size:N0} servers\n"
+ $"Cached {channelCache.Size:N0} channels, {roleCache.Size:N0} roles, {emojiCache.Size:N0} emojis",
false
+ $"Cached {channelCache.Size:N0} channels, {roleCache.Size:N0} roles, {emojiCache.Size:N0} emojis"
);
IEmbed[] embeds = [embed.Build().GetOrThrow()];