Dependency updates and mtg color fixes
This commit is contained in:
parent
846c928f5f
commit
4548c6083a
4 changed files with 17 additions and 17 deletions
|
@ -74,17 +74,17 @@ namespace Geekbot.net.Commands
|
|||
switch (color)
|
||||
{
|
||||
case "Black":
|
||||
return new Color(177, 171, 170);
|
||||
return new Color(203, 194, 191);
|
||||
case "White":
|
||||
return new Color(255, 252, 214);
|
||||
return new Color(255, 251, 213);
|
||||
case "Blue":
|
||||
return new Color(156, 189, 204);
|
||||
return new Color(170, 224, 250);
|
||||
case "Red":
|
||||
return new Color(204, 156, 140);
|
||||
return new Color(250, 170, 143);
|
||||
case "Green":
|
||||
return new Color(147, 181, 159);
|
||||
return new Color(155, 211, 174);
|
||||
default:
|
||||
return new Color(255, 252, 214);
|
||||
return new Color(204, 194, 212);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ namespace Geekbot.net.Commands
|
|||
|
||||
private async Task<EmbedBuilder> createProfile(string battletag)
|
||||
{
|
||||
var owConfig = new OverwatchConfig.Builder().WithRegions(Region.Eu).WithPlatforms(Platform.Pc);
|
||||
var owConfig = new OverwatchConfig.Builder().WithPlatforms(Platform.Pc);
|
||||
using (var owClient = new OverwatchClient(owConfig))
|
||||
{
|
||||
var player = await owClient.GetPlayerAsync(battletag);
|
||||
|
|
|
@ -14,24 +14,24 @@
|
|||
<PackageReference Include="Discord.Net">
|
||||
<Version>1.0.2</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.29.1.991" />
|
||||
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.33.0.1202" />
|
||||
<PackageReference Include="HtmlAgilityPack" Version="1.8.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options" Version="2.0.0" />
|
||||
<PackageReference Include="MtgApiManager.Lib" Version="1.0.0.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options" Version="2.0.1" />
|
||||
<PackageReference Include="MtgApiManager.Lib" Version="1.1.0" />
|
||||
<PackageReference Include="MyAnimeListSharp" Version="1.3.4" />
|
||||
<PackageReference Include="Nancy" Version="2.0.0-clinteastwood" />
|
||||
<PackageReference Include="Nancy.Hosting.Self" Version="2.0.0-clinteastwood" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
<PackageReference Include="Overwatch.Net" Version="3.0.0" />
|
||||
<PackageReference Include="Overwatch.Net" Version="3.1.0" />
|
||||
<PackageReference Include="PokeApi.NET" Version="1.1.0" />
|
||||
<PackageReference Include="Serilog" Version="2.6.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1-dev-00757" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
|
||||
<PackageReference Include="Serilog.Sinks.Literate" Version="3.0.1-dev-00044" />
|
||||
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.3.1-dev-00771" />
|
||||
<PackageReference Include="Serilog.Sinks.SumoLogic" Version="2.3.0" />
|
||||
<PackageReference Include="SharpRaven" Version="2.2.0" />
|
||||
<PackageReference Include="SharpRaven" Version="2.3.2" />
|
||||
<PackageReference Include="StackExchange.Redis">
|
||||
<Version>1.2.6</Version>
|
||||
</PackageReference>
|
||||
|
|
|
@ -9,11 +9,11 @@ namespace WikipediaApi
|
|||
public class WikipediaClient : IWikipediaClient
|
||||
{
|
||||
private readonly HttpClient _httpClient;
|
||||
public WikipediaClient()
|
||||
public WikipediaClient(string language = "en")
|
||||
{
|
||||
_httpClient = new HttpClient
|
||||
{
|
||||
BaseAddress = new Uri("https://en.wikipedia.org")
|
||||
BaseAddress = new Uri($"https://{language}.wikipedia.org")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue