Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
versx committed Mar 18, 2022
1 parent fdb366d commit f21f8de
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
9 changes: 6 additions & 3 deletions src/Services/Discord/DiscordClientService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class Strings
.LoadFromFile<Defaults>() ?? 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";
Expand Down
13 changes: 10 additions & 3 deletions src/WhMgr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<Version>5.0.2.0</Version>
<Version>5.1.0.0</Version>
<UserSecretsId>9cf13a41-ba6b-43d0-b5a5-4938c3b1e968</UserSecretsId>
<AssemblyVersion>5.0.2.0</AssemblyVersion>
<FileVersion>5.0.2.0</FileVersion>
<AssemblyVersion>5.1.0.0</AssemblyVersion>
<FileVersion>5.1.0.0</FileVersion>
<Company>XYZ Software Solutions</Company>
<RepositoryUrl>https://github.com/versx/WhMgr</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/versx/WhMgr</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down Expand Up @@ -94,6 +97,10 @@
</Content>
</ItemGroup>
<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="ClientApp\package.json" />
<None Include="ClientApp\public\manifest.json" />
</ItemGroup>
Expand Down

0 comments on commit f21f8de

Please sign in to comment.