Commit graph

5998 commits

Author SHA1 Message Date
JustArchi
a385aa9ce5 When matching actively, take into account number of trades and items in each 2018-12-02 19:04:53 +01:00
JustArchi
3c7c3ccc58 Misc 2018-12-02 06:28:03 +01:00
JustArchi
def23e5ba9 Remove excessive debug from new feature
As it's not needed anymore
2018-12-02 06:24:36 +01:00
JustArchi
a64ce524aa Closes #954 2018-12-02 00:56:08 +01:00
JustArchi
a9691d04e7 Skip login keys also when user provides details himself 2018-12-01 01:53:21 +01:00
JustArchi
d5618452fc Avoid supplying login keys in full-details scenario
Apparently Steam network is too stupid to find out that despite of our invalid login key, we also include password and 2FA token, which are valid. Therefore in order to save potential login failure due to invalid login key, let's not use it at all if it's not needed.

We still save it as we might need to use it in the future.
2018-12-01 01:46:08 +01:00
JustArchi
ff2c0b3b79 Add semaphore to active matching
Very unlikely to be hit, but still
2018-11-29 21:05:40 +01:00
JustArchi
00f1ddfae3 Bump 2018-11-29 20:09:48 +01:00
JustArchi
0e07b0e327 Translations update 2018-11-29 20:07:58 +01:00
JustArchi
c9908add44 Implement better no-more-dupes logic 2018-11-29 19:21:41 +01:00
JustArchi
e1305f1855 Double the limits 2018-11-29 18:56:28 +01:00
JustArchi
0767f256e8 Fix build 2018-11-29 18:47:53 +01:00
JustArchi
1beb08f823 Implement ETradingPreferences.MatchActively
This will probably need a lot more tests, tweaking and bugfixing, but basic logic is:

- MatchActively added to TradingPreferences with value of 16
- User must also use SteamTradeMatcher, can't use MatchEverything
- User must have statistics enabled and be eligible for being listed (no requirement of having 100 items minimum)

Once all requirements are passed, statistics module will communicate with the listing and fetch match everything bots:
- The matching will start in 1h since ASF start and will repeat every day (right now it starts in 1 minute to aid debugging).
- Each matching is composed of up to 10 rounds maximum.
- In each round ASF will fetch our inventory and inventory of listed bots in order to find MatchableTypes items to be matched. If match is found, offer is being sent and confirmed automatically.
- Each set (composition of item type + appID it's from) can be matched in a single round only once, this is to minimize "items no longer available" as much as possible and also avoid a need to wait for each bot to react before sending all trades.
- Round ends when we try to match a total of 20 bots, or we hit no items to match in consecutive 10 tries with 10 different bots.
- If last round resulted in at least a single trade being sent, next round starts within 5 minutes since last one, otherwise matching ends and repeats the next day.

We'll see how it works in practice, expect a lot of follow-up commits, unless I won't have anything to fix or improve.
2018-11-29 18:35:58 +01:00
JustArchi
06607fc0a3 Misc 2018-11-28 23:44:41 +01:00
JustArchi
b34039e10c Allow omitting the name in BGR import
Naming logic also applies to ASF API, but it's userspace in charge of making use of it.
2018-11-28 23:36:56 +01:00
JustArchi
c4e6d34b85 Misc 2018-11-28 04:18:44 +01:00
JustArchi
f0c15a0eec Bump 2018-11-28 04:13:56 +01:00
JustArchi
ae6e868b2b Translations update 2018-11-28 03:33:39 +01:00
JustArchi
328e34d313 Packages update + OpenAPI 3.0 2018-11-28 03:13:38 +01:00
JustArchi
88cea5d6f4 Misc WebBrowser improvements
Just when you thought that you've seen everything, wait for 200 OK with JSON cut in half.
2018-11-28 02:30:50 +01:00
JustArchi
049d9facba Dockerfiles: misc 2018-11-24 15:12:36 +01:00
JustArchi
321fc2f525 Dockerfiles: misc 2018-11-24 14:54:17 +01:00
JustArchi
f7f492d833 CIs: misc 2018-11-24 14:45:25 +01:00
JustArchi
fae9ad5ca8 Packages update 2018-11-24 03:24:27 +01:00
JustArchi
515c654511 Code cleanup 2018-11-24 03:20:04 +01:00
JustArchi
55f92e5920 Update CONTRIBUTING.md 2018-11-22 05:51:47 +01:00
JustArchi
1b23e10328 Update CONTRIBUTING.md 2018-11-22 05:44:08 +01:00
JustArchi
c657db5209 Update CONTRIBUTING.md 2018-11-22 05:36:47 +01:00
JustArchi
e5309a196a Translations update 2018-11-19 15:51:30 +01:00
JustArchi
6ef8093b19 Cleanup 2018-11-19 15:33:29 +01:00
Vital7
25dcccdb54 Add method to get trade token by using Steamkit (#947)
* Fix NullReferenceException in AcceptConfirmations()

* Add method to get trade token by using steamkit

* Remove AWH way to get token and caching it

* Accidentally removed some logic, fix
2018-11-19 15:16:35 +01:00
JustArchi
d2a17e1c0e Translations update 2018-11-16 21:59:13 +01:00
JustArchi
29528ead8d Add crowdin download script 2018-11-16 21:28:04 +01:00
JustArchi
1ea9e726b2 Upgrade my crowdin magic to ArchiCrodwin in preparation for #943 2018-11-16 19:50:34 +01:00
JustArchi
b7feb969d1 Remove deprecated properties 2018-11-14 21:16:20 +01:00
JustArchi
935533122d Bump 2018-11-14 21:09:01 +01:00
JustArchi
d9869e906b Translations update 2018-11-14 21:01:39 +01:00
MisakaDev
ab6ce7c7e5 Add !level command (#946)
* add !level command

* Added blank lines

* Fix https://github.com/JustArchiNET/ArchiSteamFarm/pull/946

* Fix №2 https://github.com/JustArchiNET/ArchiSteamFarm/pull/946
2018-11-14 20:51:21 +01:00
JustArchi
c6ad260e81 Misc !play correction 2018-11-14 12:22:02 +01:00
JustArchi
c7b7858a01 Travis: Misc 2018-11-13 18:22:35 +01:00
JustArchi
6309607d84 Travis: Misc 2018-11-13 18:08:56 +01:00
JustArchi
b7a2626d16 AppVeyor: we don't need custom dotnet channel anymore 2018-11-13 18:05:56 +01:00
JustArchi
4f099071aa Travis update 2018-11-13 18:04:22 +01:00
JustArchi
44d025475c Add nickname to /Api/Bot display
https://github.com/JustArchiNET/ASF-ui/issues/159
2018-11-13 17:44:29 +01:00
JustArchi
15de7568e6 Translations update 2018-11-11 23:22:44 +01:00
JustArchi
9fd34146c2 Packages update 2018-11-10 08:00:44 +01:00
JustArchi
c7c3536981 Translations update 2018-11-10 07:48:53 +01:00
JustArchi
7bab5a73a3 Further session improvements 2018-11-10 07:23:04 +01:00
JustArchi
7da7d12161 Fix ProcessStartTime on generic-netf mono 2018-11-09 10:58:05 +01:00
JustArchi
4121768625 Bump 2018-11-08 05:51:13 +01:00