Commit Graph

5081 Commits

Author SHA1 Message Date
Łukasz Domeradzki
35f4651ed6 .NET 5.0 (#1999)
* Initial work

* Fix CIs

* Fix warnings

* Update .travis.yml

* Update dockerfiles

* Update libraries to .NET 5.0

* Misc

* Remove workaround for #1812

* Update cc.sh

* CI updates

* CI updates

* Update .travis.yml
2020-11-10 23:22:57 +01:00
dependabot-preview[bot]
9a248858a5 Bump System.Linq.Async from 4.1.1 to 5.0.0
Bumps [System.Linq.Async](https://github.com/dotnet/reactive) from 4.1.1 to 5.0.0.
- [Release notes](https://github.com/dotnet/reactive/releases)
- [Commits](https://github.com/dotnet/reactive/compare/ixnet-v4.1.1...ixnet-v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 16:23:56 +00:00
dependabot-preview[bot]
7df85b5fad Bump Microsoft.Extensions.Logging.Configuration from 3.1.9 to 5.0.0
Bumps [Microsoft.Extensions.Logging.Configuration](https://github.com/dotnet/runtime) from 3.1.9 to 5.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 09:36:23 +00:00
dependabot-preview[bot]
c45a5872c7 Bump System.Security.Cryptography.ProtectedData from 4.7.0 to 5.0.0
Bumps [System.Security.Cryptography.ProtectedData](https://github.com/dotnet/runtime) from 4.7.0 to 5.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 09:26:38 +00:00
dependabot-preview[bot]
4deee0d990 Bump Microsoft.Extensions.Configuration.Json from 3.1.9 to 5.0.0
Bumps [Microsoft.Extensions.Configuration.Json](https://github.com/dotnet/runtime) from 3.1.9 to 5.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 08:55:59 +00:00
dependabot-preview[bot]
6862af1323 Bump System.IO.FileSystem.AccessControl from 4.7.0 to 5.0.0
Bumps [System.IO.FileSystem.AccessControl](https://github.com/dotnet/runtime) from 4.7.0 to 5.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 08:55:44 +00:00
dependabot-preview[bot]
4cc8d37d33 Bump System.Composition from 1.4.1 to 5.0.0
Bumps [System.Composition](https://github.com/dotnet/runtime) from 1.4.1 to 5.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 08:55:19 +00:00
dependabot-preview[bot]
9829d3c243 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 3.1.9 to 3.1.10
Bumps [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://github.com/aspnet/AspNetCore) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/aspnet/AspNetCore/releases)
- [Commits](https://github.com/aspnet/AspNetCore/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-10 00:05:53 +00:00
JustArchi
f99d296687 Closes #2014 2020-11-04 23:39:57 +01:00
GitHub Action
943f538953 Automatic translations update 2020-11-03 02:08:15 +00:00
JustArchi
4319175905 Improve trading locks usage 2020-10-31 19:48:47 +01:00
GitHub Action
efc610b17d Automatic translations update 2020-10-24 02:11:56 +00:00
JustArchi
bad0db1775 Correct @Abrynos overlook 2020-10-22 22:48:59 +02:00
Vitaliy
93cd30f820 Add itemsPerTrade argument (#2011)
* Add itemsPerTrade argument

* Validate parameter, add to Actions.SendInventory

* Add check, fix merge
2020-10-21 21:41:09 +02:00
JustArchi
4b00be7f66 Misc 2020-10-21 18:49:49 +02:00
JustArchi
25e549b7e2 Code cleanup after #2004 2020-10-21 18:48:13 +02:00
Sebastian Göls
1f8b68f5ee Implement #852 (#2004)
* Update Actions.cs, Bot.cs, and BotConfig.cs

* First round of refactoring

* Check all badge pages

* Update Bot.cs

* Make sure multiple pages of badges work with foil badges and Make item selection algorithm work with all kinds of amount values we could get from Valve

* Change order of params in Actions.SendInventory(...), Cache amount of cards for game ids, Count card elements on page when fetching card count per game, Calculate items to send for all games in parallel

* Add unit tests

* Make sure only one real app id and one asset type are present while computing cards to send and Test it

* Update ArchiWebHandler.cs

* Update Bot.cs

* Fix iteration over badge pages

* Update Bot.cs

* Make stackable item stacks smaller if possible

* Simplify code based on changing stack size of stackable items and Adapt tests

* Consider only cards of the same rarity to be of one set and Add handling of already crafted level 5 badges

* Implement feedback

* Update Bot.cs

* Update Bot.cs

* Implement feedback from review

* Adapt tests

* Improve XPath efficiency

* Check real result for additional values in unit tests

* Implement feedback

* Add additional test combining classID, type and rarity

* Make collections readonly wherever you can

* Optimize misc. code and Add SetTypesToComplete to BotConfig

* Throw exception if we have more card types than cards per set

* Remove SendSetsOnCompleted and Make CompleteTypesToSend empty per default

* Fix existing unit tests and add new ones due to new exception

* Please nitpicky Archi

* Update Bot.cs

* Change expected exception type

* Make appID constants local

* Update Bot.cs and BotConfig.cs

* Do as JetBrains Rider says

* Only fetch card count for badge if we have cards for it

* Improve naming and fix handling of URIs for foil badges

* Add Bot.LoadCardsPerSet(...), Bot.GetItemsForFullSets(...) and Trading.GetInventorySets(...) to public API

* Let AWH do its job

* Make Bot.GetPossiblyCompletedBadgeAppIDs() part of public API as well
2020-10-21 18:41:20 +02:00
JustArchi
ba08fe9631 Make it EVEN better! 2020-10-21 00:32:51 +02:00
JustArchi
71174f5978 Slight change of approach 2020-10-21 00:26:43 +02:00
JustArchi
e38887c607 Improve update process by preloading assemblies 2020-10-21 00:22:03 +02:00
JustArchi
fe0df93176 Expose CanUpdate property in ASF API 2020-10-18 20:29:56 +02:00
JustArchi
deb886066b Misc 2020-10-14 14:24:53 +02:00
JustArchi
4cd581ec04 Avoid crash on commandPrefix message + hardening 2020-10-14 12:06:42 +02:00
dependabot-preview[bot]
cbbcc3a69e Bump Microsoft.Extensions.Logging.Configuration from 3.1.8 to 3.1.9
Bumps [Microsoft.Extensions.Logging.Configuration](https://github.com/aspnet/Extensions) from 3.1.8 to 3.1.9.
- [Release notes](https://github.com/aspnet/Extensions/releases)
- [Commits](https://github.com/aspnet/Extensions/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-13 15:13:24 +00:00
dependabot-preview[bot]
55dd3ab113 Bump Microsoft.AspNetCore.Mvc.NewtonsoftJson from 3.1.8 to 3.1.9
Bumps [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://github.com/aspnet/AspNetCore) from 3.1.8 to 3.1.9.
- [Release notes](https://github.com/aspnet/AspNetCore/releases)
- [Commits](https://github.com/aspnet/AspNetCore/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-13 15:03:31 +00:00
dependabot-preview[bot]
9741cfc2f6 Bump Microsoft.Extensions.Configuration.Json from 3.1.8 to 3.1.9
Bumps [Microsoft.Extensions.Configuration.Json](https://github.com/aspnet/Extensions) from 3.1.8 to 3.1.9.
- [Release notes](https://github.com/aspnet/Extensions/releases)
- [Commits](https://github.com/aspnet/Extensions/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-13 14:49:56 +00:00
JustArchi
c1ba2b5338 Misc 2020-10-07 21:25:15 +02:00
Ryzhehvost
2a71e2cb0b add logging of invites (#2005)
* add logging of invites

* required changes

* revert not needed changes

* remove not needed convertation
2020-10-07 21:22:39 +02:00
JustArchi
e1e4f9a8b4 Misc kestrel improvements 2020-10-07 19:49:06 +02:00
Vitaliy
eb7889e206 Add support for custom reverse proxy endpoints (#2003)
* Add support for custom reverse proxy endpoints

* Fix missing string.Format, use KnownNetworks instead of KnownProxies

* Misc
2020-10-07 19:34:58 +02:00
dependabot-preview[bot]
340db9b939 Bump Markdig.Signed from 0.21.1 to 0.22.0
Bumps [Markdig.Signed](https://github.com/lunet-io/markdig) from 0.21.1 to 0.22.0.
- [Release notes](https://github.com/lunet-io/markdig/releases)
- [Changelog](https://github.com/lunet-io/markdig/blob/master/changelog.md)
- [Commits](https://github.com/lunet-io/markdig/compare/0.21.1...0.22.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-05 08:07:18 +00:00
dependabot-preview[bot]
3dc967003a Bump Nito.AsyncEx.Coordination from 5.0.0 to 5.1.0
Bumps [Nito.AsyncEx.Coordination](https://github.com/StephenCleary/AsyncEx) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/StephenCleary/AsyncEx/releases)
- [Commits](https://github.com/StephenCleary/AsyncEx/compare/v5.0.0...v5.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-05 02:05:27 +00:00
GitHub Action
3a7af6ecc8 Automatic translations update 2020-10-04 02:10:18 +00:00
Vitaliy
78c21c7b29 Fix wallet code redeeming (#1993)
* Fix wallet code redeeming

* Remove trailing slash
2020-09-28 00:27:27 +02:00
dependabot-preview[bot]
66f79aba05 Bump NLog from 4.7.4 to 4.7.5
Bumps [NLog](https://github.com/NLog/NLog) from 4.7.4 to 4.7.5.
- [Release notes](https://github.com/NLog/NLog/releases)
- [Changelog](https://github.com/NLog/NLog/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/NLog/NLog/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 12:35:34 +00:00
JustArchi
e0ba7f2a92 Fix warning 2020-09-25 13:21:36 +02:00
JustArchi
70915ecaed Convert BotName of SteamTarget to Layout 2020-09-25 13:16:53 +02:00
GitHub Action
1ce767b503 Automatic translations update 2020-09-24 02:09:33 +00:00
dependabot-preview[bot]
4faaf88da1 Bump Swashbuckle.AspNetCore from 5.6.2 to 5.6.3
Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.2...v5.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-23 13:56:39 +00:00
dependabot-preview[bot]
2cbe228c7c Bump Swashbuckle.AspNetCore.Annotations from 5.6.2 to 5.6.3
Bumps [Swashbuckle.AspNetCore.Annotations](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.2...v5.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-23 13:33:23 +00:00
dependabot-preview[bot]
6186fbc671 Bump Swashbuckle.AspNetCore.Newtonsoft from 5.6.2 to 5.6.3
Bumps [Swashbuckle.AspNetCore.Newtonsoft](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.2...v5.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-23 13:04:23 +00:00
dependabot-preview[bot]
3b550198c7 Bump Swashbuckle.AspNetCore.Newtonsoft from 5.6.1 to 5.6.2
Bumps [Swashbuckle.AspNetCore.Newtonsoft](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.1 to 5.6.2.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.1...v5.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-22 14:08:05 +00:00
dependabot-preview[bot]
c590fdc4fb Bump Swashbuckle.AspNetCore.Annotations from 5.6.1 to 5.6.2
Bumps [Swashbuckle.AspNetCore.Annotations](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.1 to 5.6.2.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.1...v5.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-22 13:43:04 +00:00
dependabot-preview[bot]
a16063f030 Bump Swashbuckle.AspNetCore from 5.6.1 to 5.6.2
Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.6.1 to 5.6.2.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.6.1...v5.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-22 13:15:58 +00:00
JustArchi
87db68baf8 Misc 2020-09-21 01:00:37 +02:00
JustArchi
6521ef0fde Misc
ToUpperInvariant() on the whole string will be faster than upping every single character (less calls for same effort), and as an extra it'll be more compatible since official 2FA returns uppercase characters, even if they're probably still converted ToUpper() on the backend.
2020-09-20 22:12:52 +02:00
JustArchi
c2ea04c889 Correct logic on 4xx and 5xx
4xx should never be retried, 5xx should be retried if we're not returning the error.
2020-09-18 00:51:29 +02:00
JustArchi
368dd801e0 Closes #1976 2020-09-18 00:47:06 +02:00
JustArchi
9489de5d95 Update Startup.cs 2020-09-17 08:53:09 +00:00
dependabot-preview[bot]
f201955c0c Bump Swashbuckle.AspNetCore.Annotations from 5.5.1 to 5.6.1
Bumps [Swashbuckle.AspNetCore.Annotations](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.5.1 to 5.6.1.
- [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases)
- [Commits](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/compare/v5.5.1...v5.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-17 08:53:09 +00:00