diff --git a/Octobot.csproj b/Octobot.csproj index ab76400..53a35c5 100644 --- a/Octobot.csproj +++ b/Octobot.csproj @@ -21,6 +21,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/locale/Messages.resx b/locale/Messages.resx index ca48fba..9ce669a 100644 --- a/locale/Messages.resx +++ b/locale/Messages.resx @@ -657,4 +657,7 @@ Example of a valid input: `1h30m` + + Version: {0} + diff --git a/locale/Messages.ru.resx b/locale/Messages.ru.resx index 7423347..b2dbd3d 100644 --- a/locale/Messages.ru.resx +++ b/locale/Messages.ru.resx @@ -657,4 +657,7 @@ Пример правильного ввода: `1ч30м` + + Версия: {0} + diff --git a/locale/Messages.tt-ru.resx b/locale/Messages.tt-ru.resx index dc3bb6f..b17f997 100644 --- a/locale/Messages.tt-ru.resx +++ b/locale/Messages.tt-ru.resx @@ -657,4 +657,7 @@ правильно пишут так: `1h30m` + + {0} + diff --git a/src/Commands/AboutCommandGroup.cs b/src/Commands/AboutCommandGroup.cs index e978ec9..19ed1e9 100644 --- a/src/Commands/AboutCommandGroup.cs +++ b/src/Commands/AboutCommandGroup.cs @@ -96,11 +96,16 @@ public class AboutCommandGroup : CommandGroup builder.AppendBulletPointLine($"{tag} — {$"AboutDeveloper@{dev.Username}".Localized()}"); } + var footer = ThisAssembly.Git.IsDirty + ? $"{ThisAssembly.Git.Branch}-{ThisAssembly.Git.Commit}-dirty" + : $"{ThisAssembly.Git.Branch}-{ThisAssembly.Git.Commit}"; + var embed = new EmbedBuilder() .WithSmallTitle(string.Format(Messages.AboutBot, bot.Username), bot) .WithDescription(builder.ToString()) .WithColour(ColorsList.Cyan) .WithImageUrl("https://i.ibb.co/fS6wZhh/octobot-banner.png") + .WithFooter(string.Format(Messages.Version, footer)) .Build(); var repositoryButton = new ButtonComponent( diff --git a/src/Messages.Designer.cs b/src/Messages.Designer.cs index ca460cf..2929905 100644 --- a/src/Messages.Designer.cs +++ b/src/Messages.Designer.cs @@ -1184,5 +1184,11 @@ namespace Octobot { return ResourceManager.GetString("TimeSpanExample", resourceCulture); } } + + internal static string Version { + get { + return ResourceManager.GetString("Version", resourceCulture); + } + } } }