Commit Graph

130 Commits

Author SHA1 Message Date
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
JustArchi
34b609e6f0 Use new ToHashSet() method 2018-06-09 00:45:15 +02:00
Łukasz Domeradzki
a515de5807 Implement support for mono (#806)
* Initial buggy mono support

* Start building generic-netf variant

* Fix CIs

* Disable ILLink.Tasks for generic-netf

* Make generic-netf *special*

* Keep fixing

Don't ask me why reverse order works, this is next-gen msbuild magic

* Mono compat

* Mono compat

* Misc

* Update to .NET Framework 4.7.2

* .NET 4.7.2 compat

* Misc
2018-06-03 07:51:20 +02:00
JustArchi
494370a226 Re-implement stage 2 of deprecation 2018-05-17 11:11:03 +02:00
JustArchi
2357729ca4 Stage 2 of deprecation for IsBotAccount, --server and --service 2018-05-13 20:59:05 +02:00
JustArchi
cbfc7d0e42 Accelerate initial bots startup
Files can be read in parallel after all
2018-05-13 19:19:27 +02:00
JustArchi
3c02028148 Extend BotBehaviour to RejectInvalidGroupInvites 2018-05-02 02:39:41 +02:00
JustArchi
18b9b6d641 Rewrite IsBotAccount into BotBehaviour 2018-04-23 23:51:34 +02:00
JustArchi
5990fac6ee Add IdlePriorityQueueOnly 2018-02-28 02:14:29 +01:00
JustArchi
6a3c9dee7f Misc 2018-02-11 11:11:38 +01:00
JustArchi
950e45a129 Misc 2018-02-11 09:58:25 +01:00
JustArchi
d19a25df5f Misc 2018-02-11 09:57:10 +01:00