From f21f8de0a83bc12abeca068393b2aa4ae56cb92f Mon Sep 17 00:00:00 2001 From: versx Date: Thu, 17 Mar 2022 21:13:06 -0700 Subject: [PATCH] version bump --- src/Services/Discord/DiscordClientService.cs | 9 ++++++--- src/Strings.cs | 2 +- src/WhMgr.csproj | 13 ++++++++++--- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/Services/Discord/DiscordClientService.cs b/src/Services/Discord/DiscordClientService.cs index d0201c2b..dab14fec 100644 --- a/src/Services/Discord/DiscordClientService.cs +++ b/src/Services/Discord/DiscordClientService.cs @@ -201,9 +201,12 @@ private async Task Client_GuildAvailable(DiscordClient client, GuildCreateEventA // Create default emojis await CreateEmojisAsync(e.Guild.Id); - // Set custom bot status if guild is in config server list - var status = _config.Instance.Servers[e.Guild.Id].Bot?.Status ?? $"v{Strings.BotVersion}"; - await client.UpdateStatusAsync(new DiscordActivity(status, ActivityType.Playing), UserStatus.Online); + // Set custom bot status if guild is in config server list, otherwise set to bot version by default + var status = _config.Instance.Servers[e.Guild.Id].Bot?.Status; + var botStatus = string.IsNullOrEmpty(status) + ? $"v{Strings.BotVersion}" + : status; + await client.UpdateStatusAsync(new DiscordActivity(botStatus, ActivityType.Playing), UserStatus.Online); } private async Task Client_GuildMemberUpdated(DiscordClient client, GuildMemberUpdateEventArgs e) diff --git a/src/Strings.cs b/src/Strings.cs index 031d23e7..23a15bcf 100644 --- a/src/Strings.cs +++ b/src/Strings.cs @@ -10,7 +10,7 @@ public static class Strings .LoadFromFile() ?? new(); public const string BotName = "Webhook Manager"; - public const string BotVersion = "5.0.2"; + public const string BotVersion = "5.1.0"; public const string Creator = "versx"; public const string ClientBuildFolder = "ClientApp/build"; diff --git a/src/WhMgr.csproj b/src/WhMgr.csproj index da39d577..3e135c09 100644 --- a/src/WhMgr.csproj +++ b/src/WhMgr.csproj @@ -21,12 +21,15 @@ false false - 5.0.2.0 + 5.1.0.0 9cf13a41-ba6b-43d0-b5a5-4938c3b1e968 - 5.0.2.0 - 5.0.2.0 + 5.1.0.0 + 5.1.0.0 XYZ Software Solutions https://github.com/versx/WhMgr + README.md + https://github.com/versx/WhMgr + git @@ -94,6 +97,10 @@ + + True + \ +