Commit Graph

141 Commits

Author SHA1 Message Date
JustArchi
1e87341877 Small cleanup 2020-04-02 17:16:05 +02:00
JustArchi
9fd22c43dd Bunch of fixes 2020-03-06 11:30:53 +01:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
53849b1106 Kill MarkTradeMessagesAsRead 2019-11-06 20:25:32 +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
a0dfb28e59 R# cleanup 2019-10-13 17:21:40 +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
64bd8308ca R# code review 2019-08-10 17:38:49 +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
178ca64cfa Implement non-blocking IO saving for databases 2019-07-25 17:09:20 +02:00
JustArchi
248f940072 Misc correction 2019-07-20 02:56:14 +02:00
JustArchi
3e4a08d81c Misc 2019-04-04 22:34:58 +02:00
JustArchi
c08596adb0 Misc 2019-03-23 16:16:57 +01:00
JustArchi
19891c3f59 Respect additional config properties in APIs 2019-03-08 16:24:49 +01:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
430ae31613 Implement more strict steamID checking 2019-02-01 22:41:25 +01:00
JustArchi
d5259c230e Open more PublicAPI interfaces 2019-01-17 16:37:16 +01:00
JustArchi
18d5f1938f Open configs for public API 2019-01-14 21:50:23 +01:00
JustArchi
e1e9a9f457 Rider cleanup 2019-01-14 19:11:17 +01:00
JustArchi
92431c1d3e Update public API of access 2019-01-12 18:48:00 +01:00
JustArchi
192656cd02 Implement basic code contracts 2019-01-10 23:44:32 +01:00
Łukasz Domeradzki
0f2a816b92 Implement plugin system (#1020)
* Implement basic plugin system

* The dawn of new era

* Add plugins warning

* Move more members to PublicAPI

* Open commands for the plugins

* Add IBotHackNewChat

* Run plugin events in parallel

* Use properties in IPlugin

* Hook our custom plugin into CI to ensure it compiles

* Fix dotnet brain damage

* Add IBotsComparer

* Add code documentation

* Add IBotTradeOffer

* Add IBotTradeOffer example

* Add IBotTradeOfferResults

* Final bulletproofing

* Final renaming
2019-01-10 22:33:07 +01:00
JustArchi
3bbddcf723 Happy new year 🎉 2019-01-02 16:32:53 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +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
b7feb969d1 Remove deprecated properties 2018-11-14 21:16:20 +01:00
JustArchi
89973519bd Revert "Remove obsolete properties"
This reverts commit 5423596f1f.

I want to include this one for a while longer considering faster stable.
2018-11-08 05:03:44 +01:00
JustArchi
5423596f1f Remove obsolete properties 2018-11-01 03:03:49 +01:00
JustArchi
de1e990dcd Fix helper properties not being written in ASF API 2018-10-16 00:15:48 +02:00
JustArchi
b15edf4559 Add ASF API swagger explorer 2018-10-06 05:06:29 +02:00
JustArchi
e64ff323c0 Fix @Abrynos code screwup + add TransferableTypes 2018-10-06 02:24:04 +02:00
JustArchi
bd2e146bef SteamParentalPIN -> SteamParentalCode + fixes for @Aareksio 2018-09-22 15:50:11 +02:00
JustArchi
708b7ebe67 Validation fixes and improvements for @Aareksio 2018-09-18 21:23:04 +02:00
JustArchi
421c4de5be Misc 2018-09-18 19:58:17 +02:00
JustArchi
b96cf4aecf Misc 2018-08-19 22:51:28 +02:00
JustArchi
13e835c3b7 Code cleanup 2018-08-19 14:37:23 +02:00
JustArchi
78247e74a3 Misc 2018-08-18 19:38:08 +02:00
JustArchi
1911b76b23 Correct serialization of encrypted passwords 2018-08-18 19:26:18 +02:00
JustArchi
6f58f58865 Closes #868 2018-08-06 01:21:36 +02:00
JustArchi
16d002f99b Misc code cleanup 2018-07-27 04:52:14 +02:00
JustArchi
626e51d2dd Get SteamMasterChatGroupID automatically
Alexa this is so good, play a-TTTempo - TOHO FULL SWING 2 - THMNK you.
2018-07-25 17:11:19 +02:00
Łukasz Domeradzki
0ffcedcf01 Implement support for new Steam chat (#811)
* First proof of concept

Still missing friends interaction

* Misc

* Add missing bits

* Misc

* Misc

* Misc

* Misc

* Handle new max message length

* AH bits for messages ack

* Implement MarkReceivedMessagesAsRead

* Mark notifications appropriately

* Remove obsolete callback subscriptions

* Correct NoResponse functions

* Adapt new code to beta format

* Implement advanced chat logging functionality

* Improve message handling

* Port naive escaping logic from ArchiBoT

* Cover edge cases

* Update lib

* Misc

* Kill more obsolete pragmas

* Update SK2 to official build

From https://ci.appveyor.com/project/SteamRE/steamkit/build/2.1.0.649/job/osamyjpyf7v9ot7k/artifacts

* Packages update

* SteamTarget changes

Single responsibility + fix of required parameters
2018-07-24 23:43:25 +02:00
JustArchi
d17714f066 Misc 2018-07-21 19:30:32 +02:00
JustArchi
f13c5bf34e Remove deprecated settings 2018-07-14 16:29:33 +02:00
JustArchi
8537ad54e5 FarmingOrder -> FarmingOrders 2018-07-04 23:43:18 +02:00
JustArchi
507f6f0775 Closes #832 2018-07-04 19:13:51 +02:00
JustArchi
2090d6301b Move DismissInventoryNotifications to BotBehaviour
Also stage 2 of all deprecated properties until now.
2018-06-19 20:02:11 +02:00
JustArchi
6c8a82ac13 Packages update 2018-06-13 14:52:55 +02:00
JustArchi
e2d052440a Fix 2018-06-13 01:37:18 +02:00
JustArchi
62904e13cb FarmOffline -> OnlineStatus 2018-06-13 00:48:33 +02:00