Skip to content

Commit

Permalink
Update Nuget Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bdawg1989 committed Jun 13, 2024
1 parent 6e2620a commit bcba3be
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 30 deletions.
2 changes: 1 addition & 1 deletion SysBot.Base/SysBot.Base.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<PackageReference Include="NLog" Version="5.2.8" />
<PackageReference Include="NLog" Version="5.3.2" />
<PackageReference Include="LibUsbDotNet" Version="2.2.29" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
6 changes: 6 additions & 0 deletions SysBot.Pokemon.ConsoleApp/SysBot.Pokemon.ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@
<ProjectReference Include="..\SysBot.Pokemon.Z3\SysBot.Pokemon.Z3.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="PKHeX.Core">
<HintPath>..\SysBot.Pokemon\deps\PKHeX.Core.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
13 changes: 1 addition & 12 deletions SysBot.Pokemon.Discord/Commands/Bots/TradeModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ public async Task HideTradeAsync([Summary("Trade Code")] int code, [Summary("Sho
content = ReusableActions.StripCodeBlock(content);
var set = new ShowdownSet(content);
var template = AutoLegalityWrapper.GetTemplate(set);
int formArgument = ExtractFormArgument(content);

if (set.InvalidLines.Count != 0)
{
Expand Down Expand Up @@ -520,7 +519,7 @@ public async Task TradeAsync([Summary("Trade Code")] int code, [Summary("Showdow
content = ReusableActions.StripCodeBlock(content);
var set = new ShowdownSet(content);
var template = AutoLegalityWrapper.GetTemplate(set);
int formArgument = ExtractFormArgument(content);

if (set.InvalidLines.Count != 0)
{
var msg = $"Unable to parse Showdown Set:\n{string.Join("\n", set.InvalidLines)}";
Expand Down Expand Up @@ -665,16 +664,6 @@ public async Task TradeAsyncAttach([Summary("Ignore AutoOT")] bool ignoreAutoOT
}
}

private static int ExtractFormArgument(string content)
{
var match = Regex.Match(content, @"\.FormArgument=(\d+)");
if (match.Success)
{
return int.Parse(match.Groups[1].Value);
}
return 0;
}

[Command("batchTrade")]
[Alias("bt")]
[Summary("Makes the bot trade multiple Pokémon from the provided list, up to a maximum of 3 trades.")]
Expand Down
3 changes: 1 addition & 2 deletions SysBot.Pokemon.Discord/SysBot.Pokemon.Discord.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@

<ItemGroup>
<PackageReference Include="AnimatedGif" Version="1.0.5" />
<PackageReference Include="Discord.Net" Version="3.14.1" />
<PackageReference Include="Discord.Net" Version="3.15.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="PKHeX.Core" Version="24.6.3" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
<ProjectReference Include="..\SysBot.Base\SysBot.Base.csproj" />
<ProjectReference Include="..\SysBot.Pokemon\SysBot.Pokemon.csproj" />
Expand Down
1 change: 0 additions & 1 deletion SysBot.Pokemon.Twitch/SysBot.Pokemon.Twitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PKHeX.Core" Version="24.6.3" />
<PackageReference Include="TwitchLib.Client" Version="3.3.1" />
</ItemGroup>

Expand Down
1 change: 0 additions & 1 deletion SysBot.Pokemon.WinForms/SysBot.Pokemon.WinForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PKHeX.Core" Version="24.6.3" />
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
</ItemGroup>

Expand Down
9 changes: 4 additions & 5 deletions SysBot.Pokemon.YouTube/SysBot.Pokemon.YouTube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Apis" Version="1.67.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.67.0" />
<PackageReference Include="Google.Apis.Core" Version="1.67.0" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.67.0.3351" />
<PackageReference Include="Google.Apis" Version="1.68.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.68.0" />
<PackageReference Include="Google.Apis.Core" Version="1.68.0" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.68.0.3421" />
<PackageReference Include="Google.Apis.YouTubePartner.v1" Version="1.35.1.1334" />
<PackageReference Include="PKHeX.Core" Version="24.6.3" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 0 additions & 4 deletions SysBot.Pokemon.Z3/SysBot.Pokemon.Z3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
<DebugType>none</DebugType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PKHeX.Core" Version="24.6.3" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SysBot.Pokemon\SysBot.Pokemon.csproj" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion SysBot.Pokemon/SysBot.Pokemon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<ItemGroup>
<PackageReference Include="FuzzySharp" Version="2.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="PKHeX.Core" Version="24.6.3" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
<ProjectReference Include="..\SysBot.Base\SysBot.Base.csproj" />
</ItemGroup>
Expand Down
12 changes: 9 additions & 3 deletions SysBot.Tests/SysBot.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand All @@ -27,4 +27,10 @@
<ProjectReference Include="..\SysBot.Pokemon\SysBot.Pokemon.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="PKHeX.Core">
<HintPath>..\SysBot.Pokemon\deps\PKHeX.Core.dll</HintPath>
</Reference>
</ItemGroup>

</Project>

0 comments on commit bcba3be

Please sign in to comment.