Commit Graph

137 Commits

Author SHA1 Message Date
JustArchi
e26aec339f Catch proper exception instead 2021-05-02 19:39:41 +02:00
JustArchi
cac5d5fadb Try catching any exception 2021-05-02 19:18:46 +02:00
JustArchi
d394ba60c7 Add a workaround for lack of Humanizer support 2021-05-02 18:54:46 +02:00
JustArchi
efec44e593 R# code improvements & cleanups 2021-04-11 00:33:32 +02:00
Vitaliya
c34812e4bc Fix RandomNext behaviour (#2212) 2021-02-27 13:49:29 +01:00
JustArchi
45a5fec95a Happy 2021
And let's hope it'll be better than 2020
2021-01-03 22:24:22 +01:00
JustArchi
e82560259b Final code cleanup 2020-11-14 22:37:00 +01:00
Łukasz Domeradzki
35f4651ed6 .NET 5.0 (#1999)
* Initial work

* Fix CIs

* Fix warnings

* Update .travis.yml

* Update dockerfiles

* Update libraries to .NET 5.0

* Misc

* Remove workaround for #1812

* Update cc.sh

* CI updates

* CI updates

* Update .travis.yml
2020-11-10 23:22:57 +01:00
JustArchi
d4345a1a16 Closes #1964 2020-09-13 21:43:25 +02:00
JustArchi
f99043db30 Closes #1832 2020-08-23 19:24:10 +02:00
Łukasz Domeradzki
9fc1ea65a5 Closes #1543 (#1944)
* Start working on nullable checks

help me

* Update GlobalConfig.cs

* Finish initial fixup round

* nullability code review
2020-08-22 21:41:01 +02:00
JustArchi
4ead85965a Add another superpower: fetching 2FA deviceID automatically 2020-07-05 00:45:13 +02:00
JustArchi
822bfc239f Move ToLongRunningTask into ASF core and start making use of it 2020-06-15 16:55:57 +02:00
JustArchi
32b376d85a Open RNG for plugins 2020-06-12 13:00:32 +02:00
JustArchi
5d4e2eaf64 Use string indices 2020-04-18 18:28:15 +02:00
Vitaliy
fbe5bd12ae Use streams for http responses instead of strings where possible, replace HtmlAgilityPack with AngleSharp (#1703)
* Replace HAP with AngleSharp, add stream support to WebBrowser

* Fix skipped nullable operator

* Add extension method

* Rename function to be closer to HAP API

* Add JSON deserialization from stream, fix variable names, remove obsolete code

* Add more extension methods

* Fixes after review:

Remove excessive dependency
Move string value to const
Different handling for null and empty cases for confirmations
Use more human-friendly names

* Add http completion options, make GetToStream private

* Cleanup

* Add null checks, make StreamResponse disposable

* Refactor UrlGetToBinaryWithProgress into using UrlGetToStream
2020-04-02 17:01:55 +02:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
55a0a7cfdb Convert background tasks to async void 2019-10-20 15:12:04 +02:00
JustArchi
514599390f Misc 2019-06-25 12:37:22 +02:00
JustArchi
b98268a465 R# cleanup, small code improvements 2019-05-19 15:38:06 +02:00
JustArchi
16cb4320a3 Update routine code review/cleanup 2019-04-30 14:31:24 +02:00
JustArchi
7ebfbb6f31 Misc 2019-04-10 20:21:11 +02:00
JustArchi
91e495605b Port ArchiBot's WebBrowser client errors handling
First important change is for all requests sent by ASF. Across those 4 years of development I do not remember a single situation where retrying on 4xx status code brought any improvement, bad request has to be handled by us, access denied and not found won't disappear after retry, all other ones are rather unused. Therefore, it makes sense to skip remaining tries on 4xx errors and do not flood the service with requests that are very unlikely to change anything.
Second change is smaller one and it allows the consumer of WebBrowser to declare that he's interested in handling client error codes himself. This way he can add extra logic and appropriately react to them - ASF uses it in statistics module, where the listing can signal refusal to list due to e.g. outdated ASF version through 403. Previously this was treated on the same level as timeout, which wasn't optimal.
2019-04-05 16:24:02 +02:00
JustArchi
71a9f06e55 Implement interactive command console 2019-02-23 04:31:58 +01:00
JustArchi
b677ba8202 Code/style cleanup 2019-02-16 17:34:17 +01:00
JustArchi
a00782527d Add handling for one more deviceID + misc optimization 2019-02-15 21:20:44 +01:00
JustArchi
92e28ecc5b Open more interfaces for PublicAPI 2019-01-15 12:30:29 +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
ca74f1f4a7 Open utilities for public API 2019-01-12 17:51:24 +01:00
JustArchi
192656cd02 Implement basic code contracts 2019-01-10 23:44:32 +01:00
JustArchi
3bbddcf723 Happy new year 🎉 2019-01-02 16:32:53 +01:00
JustArchi
214dbaabcd Improve 2FA import process 2018-12-26 16:56:28 +01:00
JustArchi
c5aae8d534 Remove steam awards voting
We do not intend to keep it in mainline as the API is unstable and too sale-specific.
2018-12-26 02:56:38 +01:00
JustArchi
f8aa8babcf R# cleanup 2018-12-15 00:27:15 +01:00
JustArchi
cd0962f14c Another logical fixes 2018-12-09 21:26:22 +01:00
JustArchi
c6c7f35f7e Make MatchActively take into account non-tradable items 2018-12-09 18:08:14 +01:00
JustArchi
dfc8473680 Remove dead code 2018-09-22 01:30:07 +02:00
JustArchi
3b82187824 Add changelog during update
Thanks @Abrynos
2018-09-21 03:29:54 +02:00
Abrynos
18cd620db8 Add Utilities.MarkdownToText() (#903)
* Add Utilities.MarkdownToText()

* Add GET /Api/WWW/MarkdownToText?text={text} and sort usings alphabetically

* Revert sorting usings

* Sort functions

* Remove Log if the user is at fault

* Rename variable and adjust if for errors
2018-09-20 22:20:52 +02:00
JustArchi
5abace39f9 Add new Bot actions + a lot of performance improvements 2018-09-19 18:25:17 +02:00
JustArchi
7ab19aa806 Refactor ASF commands for future actions
Closes #891
2018-09-15 22:34:32 +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
16d002f99b Misc code cleanup 2018-07-27 04:52:14 +02:00
JustArchi
1b5fc78068 Correct WebProxy type for #855 2018-07-17 21:10:18 +02:00
JustArchi
69f768acff Improve command args parsing
Previously ASF joined out-of-range arguments in string commands (input, nickname, owns) using a normal space, now original whitespace is preserved, which is especially useful for including custom whitespace characters in nickname command.
2018-05-16 22:35:32 +02:00
JustArchi
bafdb93a0c Misc 2018-04-23 05:53:58 +02:00
JustArchi
3682eefc02 Code review 2018-03-09 15:43:25 +01:00
JustArchi
1b56c00c7a Misc 2018-02-26 19:48:29 +01:00
JustArchi
457d70b463 Misc 2018-02-26 19:32:53 +01:00