Commit Graph

151 Commits

Author SHA1 Message Date
JustArchi
6f9810f8b8 Misc 2019-01-17 20:36:24 +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
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
77c12fd491 Increase DefaultConnectionTimeout 2018-12-30 22:16:07 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00
JustArchi
675efe3875 Add Steam winter sale 2018 to sales blacklist 2018-12-13 19:22:19 +01:00
JustArchi
1a6b8792e5 Bump default WebLimiterDelay 2018-12-07 22:22:26 +01:00
JustArchi
242284559e Implement hybrid session logic
In ASF V3.0 and before, we had a very naive mechanism with session handling that used to work fine but send a lot of requests as we always had to check session before sending a request.

Since ASF V3.1 until now we used new mechanism which refreshed session only when it indeed got invalidated, which worked good until now, but apparently due to some changed at Valve it stopped redirecting appropriately in all POST requests and non-/my GET/HEAD ones.

Therefore, implement hybrid session logic whick works V3.1+ for /my requests, and V3.0- for everything else.
2018-11-06 21:41:59 +01:00
JustArchi
de1e990dcd Fix helper properties not being written in ASF API 2018-10-16 00:15:48 +02:00
JustArchi
a1e2d4f8c1 Closes #882 2018-10-12 16:57:02 +02:00
JustArchi
7c3cbc03f8 Remove default config files 2018-10-07 03:21:32 +02:00
JustArchi
2e31d7ff39 Improve rate limit of messaging 2018-09-27 00:09:00 +02:00
JustArchi
5e38d176cd Add MessagingLimiterDelay 2018-09-26 20:56:22 +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
9534d2b9f0 R# cleanup 2018-09-08 00:46:40 +02:00
Łukasz Domeradzki
e18c8ffa55 Rewrite IPC from HttpListener to KestrelHttpServer (#898)
* Debug tests

* Update

* Add support for IPCPassword

* Misc

* Misc

* Update

* Misc

* Cut dependencies to bare minimum

* Update

* Update

* Update

* Update

* Add support for websockets

* Cleanup and preparation for merge

* Add missing mapping of / -> index.html

* Add support for custom path + misc

* Misc

* Declare latest compatibility version

* Fix harmless error on /Api/Log websocket disconnect
2018-09-08 00:05:23 +02:00
JustArchi
6b55f5e3bb Disable UDP protocol due to #882 2018-08-17 02:33:05 +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
59965523ff Add SteamMessagePrefix 2018-07-26 02:25:57 +02:00
JustArchi
1b5fc78068 Correct WebProxy type for #855 2018-07-17 21:10: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
04e5efa9a4 Closes #809 2018-06-15 04:06:54 +02:00
JustArchi
62904e13cb FarmOffline -> OnlineStatus 2018-06-13 00:48:33 +02:00
Łukasz Domeradzki
9a30277cf8 Runtime upgrade to .NET Core 2.1 (#804)
* Initial bump to .NET Core 2.1

* Add workaround for https://github.com/mono/linker/issues/286

* Deprecate BackgroundGCPeriod

* Websockets updates

* Misc

* Check if travis works with 2.1

* Not yet

* Fix travis for now

* Test

* Whatever, travis is broken right now

* Schema update

* Update travis

* Test travis

* Check OSX

* Correct CI versions

* Misc

* Misc
2018-06-04 00:17:13 +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
cbfc7d0e42 Accelerate initial bots startup
Files can be read in parallel after all
2018-05-13 19:19:27 +02:00
JustArchi
94d9778e21 Fix NRE 2018-05-09 13:33:22 +02:00
JustArchi
083b628b3f Consider only WebProxyPassword to be sensitive 2018-05-09 05:47:43 +02:00
JustArchi
14d373cbbf Packages update 2018-05-09 05:36:29 +02:00
JustArchi
000a722275 Misc 2018-05-09 05:32:04 +02:00
JustArchi
fce94c3fa4 Add proxy support
https://www.youtube.com/watch?v=g54aPmNjMM4
2018-05-09 05:31:48 +02:00
JustArchi
c06d9cc887 Rewrite command-line arguments 2018-04-18 01:04:28 +02:00
JustArchi
66c80e618f Closes #764 2018-04-13 09:17:27 +02:00
JustArchi
a784f9ae01 Add UDP to default SteamProtocols 2018-03-20 10:15:52 +01:00
JustArchi
83a7d4b3ca Change . back to ! 2018-03-15 17:33:09 +01:00
JustArchi
2cae055442 Add GlobalConfig.CommandPrefix and change default ! to . 2018-03-15 16:12:14 +01:00
JustArchi
3682eefc02 Code review 2018-03-09 15:43:25 +01:00
JustArchi
37564d0cfe Add GlobalConfig to /Api/ASF, and POST /Api/ASF, #750 2018-02-22 16:08:50 +01:00
JustArchi
0cca2fd7b4 Implement IPCPrefixes
This makes it possible to not only listen on multiple different host/port combinations, but also different protocols or base URLs (even though this will probably break things up, need to do more tests)
2018-02-12 22:07:02 +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
JustArchi
4c330ded16 Closes #728 2018-01-12 19:43:34 +01:00