Commit Graph

1045 Commits

Author SHA1 Message Date
JustArchi
12b940d1df Final misc optimizations 2020-03-06 00:18:30 +01:00
JustArchi
847c78b650 R# cleanup 2020-03-05 21:05:40 +01:00
Vitaliy
6657945b7d Use IAsyncEnumerable for getting inventory (#1652)
* Use IAsyncEnumerable for getting inventory

* Don't suppress exceptions, catch them in ResponseUnpackBoosters

* Make sure we don't get duplicate assets during unpack

* Rewrite inventory filters to LINQ methods

* Add handling duplicate items, mark GetInventory as obsolete, catch exceptions from getting inventory errors

* Mark GetInventoryEnumerable as NotNull, don't check received inventory for null, use comparison with nullable values

* Use specific types of exceptions, log exceptions using LogGenericWarningException, handle IOException separately (without logging the exception), remove default null value

* Use old method signature for obsolete API

* Use error level for generic exceptions

* Fix wantedSets not being used

* Correct exception types, rename function

* Replace exception types

* Make SendTradeOfferAsync that accepts Func<Steam.Asset, bool> as a filter

* Fix missing targetSteamID in ResponseTransferByRealAppIDs

* Make parameter name readable

* Rename method
2020-02-22 18:03:22 +01:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
1c9c88948c Closes #1619 2020-01-30 18:45:51 +01:00
JustArchi
2bf1b5643a Misc 2020-01-27 19:37:23 +01:00
JustArchi
f0292a07b9 Misc 2020-01-01 12:45:32 +01:00
JustArchi
ffeaf8480e Increase MaxTwoFactorCodeFailures
SERIOUSLY VOLVO?
2019-12-29 19:09:41 +01:00
JustArchi
b840e2ae1b Closes #1516 2019-11-23 19:40:58 +01:00
JustArchi
fe2091c71a Improvement in regards to #1513 2019-11-20 19:58:51 +01:00
JustArchi
71fdc829a1 Misc 2019-11-20 17:59:24 +01:00
JustArchi
469f6d0d95 Closes #1513 2019-11-20 17:56:35 +01:00
JustArchi
ce5bf02313 Closes #1505 2019-11-14 21:37:26 +01:00
JustArchi
53849b1106 Kill MarkTradeMessagesAsRead 2019-11-06 20:25:32 +01:00
JustArchi
2e83f51a9d Code cleanup after #1482 2019-11-06 18:56:34 +01:00
Ryzhehvost
60f7dc6323 Extra BotBehaviour options to mark as read only messages from bots, and only incoming trade offer messages (#1482)
* add MarkBotsMessagesAsRead

* added MarkTradeMessagesAsRead; made MarkBotsMessagesAsRead work in group chats too

* requested changes

* why do you hate me so much?

* requested changes
2019-11-06 18:42:23 +01:00
JustArchi
af9721dc40 Fix ASF not finding correct SteamFamilySharingIDs
The relevant fix lies in xpath, the rest is misc refactor
2019-11-04 20:28:48 +01:00
JustArchi
b4ed859bcb Closes #1472 2019-10-20 21:36:27 +02:00
JustArchi
a0dfb28e59 R# cleanup 2019-10-13 17:21:40 +02:00
JustArchi
97f67711ee Misc 2019-10-05 22:35:39 +02:00
JustArchi
067293eeb5 Start with .NET Core 3.0 code enhancements 2019-09-27 20:43:11 +02:00
Łukasz Domeradzki
5b4867c387 Update ASF to .NET Core 3.0 (#1427)
* Initial bump to .net core 3.0

* Update cc.sh

* Update appveyor.yml

* Update ArchiSteamFarm.csproj

* Update appveyor.yml

* Update .travis.yml

* Build corrections

* Cleanup

* Update .travis.yml

* Don't publish trimmed for now

* Update ArchiSteamFarm.csproj
2019-09-26 20:28:25 +02:00
JustArchi
241172a44e Omit dump of configs and databases on debug builds
They only slow down debugging process
2019-09-17 19:04:12 +02:00
JustArchi
d74f13c567 Code review 2019-08-25 19:25:28 +02:00
JustArchi
038f290439 Misc 2019-08-12 13:06:07 +02:00
JustArchi
64bd8308ca R# code review 2019-08-10 17:38:49 +02:00
JustArchi
7d197ecebf Correct usage of IdleRefundableGames 2019-08-10 01:24:22 +02:00
JustArchi
055ede7f49 Kill IBotHackNewChat plugin interface 2019-08-07 13:02:43 +02:00
Vitaliy
737aa622b7 Fix wallet code redeeming due to Steam changes (#1358)
* Fix wallet code redeeming due to Steam changes

* Revert "Fix wallet code redeeming due to Steam changes"

This reverts commit a993b26e

* Add AssumeWalletKeyOnBadActivationCode parameter to RedeemingPreferences, add according flags for redeem^
2019-08-05 14:41:37 +02:00
JustArchi
99b2d250ee Misc 2019-08-03 16:32:07 +02:00
JustArchi
6b06b7fb82 Misc code review
@abrynos forgot to add logic for deleted IPC.config file 😁
2019-08-01 21:21:43 +02:00
JustArchi
31f3c0d273 Misc 2019-07-28 14:03:42 +02:00
JustArchi
c0e6b9f12b Misc 2019-07-25 17:12:36 +02:00
JustArchi
178ca64cfa Implement non-blocking IO saving for databases 2019-07-25 17:09:20 +02:00
JustArchi
fb2b2e830d Enhance fallback for lack of verification 2019-07-22 18:44:41 +02:00
JustArchi
176efac2dc Avoid excessive parental request
We can make use of the one in logged-in, which is superior
2019-07-22 13:55:26 +02:00
JustArchi
0ca7d40490 Add better fallback for parental timeouts 2019-07-22 12:48:44 +02:00
JustArchi
248f940072 Misc correction 2019-07-20 02:56:14 +02:00
JustArchi
767471b5a3 Avoid unlocking parental account when it's not needed
Even if user supplies the code, as long as we can determine that it's really not needed
2019-07-20 02:50:48 +02:00
JustArchi
adec280472 Packages update 2019-07-20 02:08:19 +02:00
JustArchi
535ce04a47 Implement enhanced support for SteamParental
- Detect if SteamParental is active
- Verify if the code supplied by user is valid
- If the code is not valid or not supplied, generate it automatically (through local bruteforcing, pending further speed enhancements)

It's really sad seeing how this is possible, Valve seriously, you couldn't dedicate one single request in the backend to verify that? You could easily implement rate-limiting on invalid attempts and make parental more secure, but with the current implementation it's a security joke.
2019-07-20 00:22:50 +02:00
JustArchi
768dd07159 Misc 2019-07-18 13:29:03 +02:00
Ryzhehvost
5c93be940e Split steam messages with respect to newlines (#1329)
* Split steam messages with respect to newlines

* minor fixes and code style

* handle group messages too + code style

* optimize fallback

* dumbest changes in the history of the Earth

* add newline before ...

* handle edge cases properly
2019-07-14 18:30:17 +02:00
JustArchi
0060acf74f Fix GamesPlayedWhileIdle 2019-07-07 12:57:21 +02:00
Vitaliy
d240f6595d Fix circular reference exception from Kestrel (#1313) 2019-07-06 14:34:48 +02:00
JustArchi
d70e71dd68 Closes #1312 2019-07-05 11:39:19 +02:00
JustArchi
b30e3f3b5d Improve owns command to take into account owned packageIDs
Idea thanks to @ryzhehvost
2019-07-02 15:06:01 +02:00
JustArchi
32e0de5a70 Implement basic logic for #1299 2019-06-30 23:33:50 +02:00
JustArchi
4592a20c89 General code review 2019-06-29 15:59:38 +02:00
JustArchi
08926aa2f1 Improve InvalidPassword/RateLimitExceeded procedure
Previously we had this awful "assume rate limit if invalid password" because Steam used to do this falsely for rate limits as well.

Since I can no longer reproduce this false behaviour with latest network, I assume that Valve corrected whatever they had broken back then and the network will properly tell us RLE in RLE condition, and invalid password when account credentials are invalid.

There is still case for invalid account credentials when login key is invalid, and we should still handle that one gracefully.
2019-06-23 02:05:49 +02:00