Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PicSizeCheckBot/HelpHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ I can also store your notes and ID queues.
Suggestions or bugs reports: https://github.com/TehGM/WolfBot-Size/issues
Sponsor my work: https://github.com/sponsors/TehGM

Using Wolfringo library v2.2.0
Using Wolfringo library v2.2.1
Bot version: v{GetVersion()}
Copyright © 2020 TehGM", // due to AGPL licensing, this line cannot be changed or removed, unless by the original author
cancellationToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GroupBlacklistMentionFilter : IMentionFilter
{
public HashSet<uint> GroupIDs { get; }

[BsonConstructor(nameof(this.GroupIDs))]
[BsonConstructor(nameof(GroupIDs))]
public GroupBlacklistMentionFilter(IEnumerable<uint> groupIDs)
{
this.GroupIDs = groupIDs as HashSet<uint> ?? groupIDs?.ToHashSet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GroupWhitelistMentionFilter : IMentionFilter
{
public HashSet<uint> GroupIDs { get; }

[BsonConstructor(nameof(this.GroupIDs))]
[BsonConstructor(nameof(GroupIDs))]
public GroupWhitelistMentionFilter(IEnumerable<uint> groupIDs)
{
this.GroupIDs = groupIDs as HashSet<uint> ?? groupIDs?.ToHashSet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class UserBlacklistMentionFilter : IMentionFilter
{
public HashSet<uint> UserIDs { get; }

[BsonConstructor(nameof(this.UserIDs))]
[BsonConstructor(nameof(UserIDs))]
public UserBlacklistMentionFilter(IEnumerable<uint> userIDs)
{
this.UserIDs = userIDs as HashSet<uint> ?? userIDs?.ToHashSet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class UserWhitelistMentionFilter : IMentionFilter
{
public HashSet<uint> UserIDs { get; }

[BsonConstructor(nameof(this.UserIDs))]
[BsonConstructor(nameof(UserIDs))]
public UserWhitelistMentionFilter(IEnumerable<uint> userIDs)
{
this.UserIDs = userIDs as HashSet<uint> ?? userIDs?.ToHashSet();
Expand Down
36 changes: 18 additions & 18 deletions PicSizeCheckBot/PicSizeCheckBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>TehGM.WolfBots.PicSizeCheckBot</RootNamespace>
<Version>2.2.4</Version>
<Version>2.2.6</Version>
<Authors>TehGM</Authors>
<Company>TehGM</Company>
<Product>WolfBot-Size</Product>
Expand Down Expand Up @@ -48,23 +48,23 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.2" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.2" />
<PackageReference Include="MongoDB.Driver" Version="3.2.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Serilog" Version="4.2.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.12" />
<PackageReference Include="MongoDB.Driver" Version="3.11.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="Serilog" Version="4.4.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="10.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="10.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="10.0.1" />
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.Datadog.Logs" Version="0.5.5" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
<PackageReference Include="Wolfringo" Version="2.2.0" />
<PackageReference Include="Wolfringo.Hosting" Version="2.2.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageReference Include="Serilog.Sinks.Datadog.Logs" Version="0.6.1" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="4.1.1" />
<PackageReference Include="Wolfringo" Version="2.2.1" />
<PackageReference Include="Wolfringo.Hosting" Version="2.2.1" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion PicSizeCheckBot/appsecrets-example.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"WolfClient": {
"LoginEmail": "<bot-email>",
"LoginPassword": "<bot-password>"
"LoginPassword": "<bot-password>",
"ApiKey": "BotApiKey"
},
"Database": {
"ConnectionString": "<mongodb-connection-string>"
Expand Down
Loading