Commit Graph

5437 Commits

Author SHA1 Message Date
Archi
1c31e2a3cc Misc 2021-06-25 20:35:17 +02:00
Archi
f3d6f92404 Correct /Api/NLog reaction to close message
https://mcguirev10.com/2019/08/17/how-to-close-websocket-correctly.html
2021-06-25 19:49:37 +02:00
Archi
d5a10ca7eb Misc 2021-06-25 14:43:46 +02:00
ArchiBot
3a1b404cdf Automatic translations update 2021-06-25 02:12:38 +00:00
ArchiBot
ab92da5a15 Automatic translations update 2021-06-24 02:07:04 +00:00
Archi
2b41fd5983 Unify idling -> farming
We should use farm when we mean automatically playing games in order to receive card drops.
2021-06-23 23:48:48 +02:00
Archi
897e7150e2 Make reset command return back to GamesPlayedWhileIdle 2021-06-23 23:39:21 +02:00
Archi
abd8d41d06 Closes #2342 2021-06-23 12:51:24 +02:00
Vitaliya
f316bf7b49 Add controllers as services (#2343) 2021-06-23 12:21:01 +02:00
Archi
ff4e9aa22a Use more appropriate exception 2021-06-21 23:58:03 +02:00
Archi
2c9d131ceb Actually throw on invalid input
Handling duplicates is fine, but this is userspace error
2021-06-21 23:56:49 +02:00
Archi
2cee5e442f Add extra bulltetproofing to AH's PlayGames()
We don't want to ever have duplicates there, even if userspace supplies them (which should never happen)
2021-06-21 23:51:26 +02:00
Archi
db3d4e465d Include more helpful output for Play() Bot action 2021-06-21 23:38:02 +02:00
Archi
6a8e48fd38 Optimize UrlGetToBinary() method 2021-06-21 23:20:32 +02:00
Archi
ed10eee974 Improve ASF codebase 2021-06-21 22:45:18 +02:00
Archi
c76decda35 Improve ASF codebase 2021-06-21 22:07:35 +02:00
Archi
6320657aee Correct MaxMessageBytesForLimitedAccounts
Thanks @Ryzhehvost
2021-06-21 20:06:55 +02:00
Archi
d01a26e48a OS: Add FreeBSD support inside ASF code
#2129
2021-06-21 11:47:20 +02:00
Archi
38dc1730ab Misc 2021-06-20 13:44:04 +02:00
Archi
7f3ddcddcc Remove debugging leftovers 2021-06-19 17:18:00 +02:00
Archi
cca2ab4174 Misc 2021-06-18 23:29:27 +02:00
Archi
346ed72fc7 Enable new storage functionality for plugins usage 2021-06-18 23:27:51 +02:00
Archi
398c93e9b7 Closes #2337 2021-06-18 20:56:32 +02:00
Łukasz Domeradzki
2aab56b775 Rewrite SendMessage() functions to account for new rate-limits (#2335)
* Rewrite SendMessage() functions to account for new rate-limits

* Refactor new message splitting logic into SteamChatMessage.cs

This makes it ready for unit tests

* Change the concept into UTF8-oriented logic

* Misc

* Add fix for another unit test

* Update

* Fix failing test

I SPENT HOURS ON THIS

* Misc

* Misc

* Add additional unit tests ensuring this works as designed

* Misc

* Misc

* Add one more unit test

* Rework the logic to account for new findings

* Misc

* Add unit test verifying exception on too long prefix

* Address first @Abrynos concern

Because we can

* Throw also on too long prefix in regards to newlines

* Correct wrong bytesRead calculation

This worked previously only because we actually never had enough of room for escaped chars anyway and skipped over (2 + 2 missing bytes was smaller than 5 required to make a line)

* Add unit test verifying if calculation was done properly

* Address @Ryzhehvost concern

* Handle empty newlines in the message properly

* Misc

No reason to even calculate utf8 bytes for empty lines

* Misc

* Add unit test verifying the reserved escape message bytes count

* Correct calculation of lines by taking into account \r

* Update ArchiSteamFarm/Steam/Bot.cs

Co-authored-by: Sebastian Göls <6608231+Abrynos@users.noreply.github.com>

* @Abrynos next time check if it compiles without warnings

* Update SteamChatMessage.cs

* Apply @Abrynos idea in a different way

* Rewrite bot part to remove unnecessary delegate

* Add @Ryzhehvost test

* Add debug output

* Extend @Ryzhehvost test for prefix

* Misc

* Misc refactor

* Misc

* Misc

* Add logic for limited accounts, correct for unlimited

Thanks @Ryzhehvost

* Misc

Co-authored-by: Sebastian Göls <6608231+Abrynos@users.noreply.github.com>
2021-06-18 19:50:14 +02:00
Archi
0a0497ccaf Add Steam Summer Sale 2021 to SalesBlacklist 2021-06-17 20:03:43 +02:00
ArchiBot
e089d1692e Automatic translations update 2021-06-16 02:15:56 +00:00
Archi
b64eec8def Misc for netf
Doesn't make sense to check further if index points to the end of the string, this also handles previous check
2021-06-16 00:48:28 +02:00
Archi
47813a0eb6 Misc
In very unlikely situation where something other than our executable would reference our code, version and module of SharedInfo should refer to ASF code, not that executable.
2021-06-15 13:11:27 +02:00
Archi
edf46c0ff4 Misc: copyright notice on program startup 2021-06-15 13:10:45 +02:00
ArchiBot
e23cfb3a9c Automatic translations update 2021-06-14 02:16:34 +00:00
ArchiBot
d71a40fbf3 Automatic translations update 2021-06-13 02:15:49 +00:00
ArchiBot
eefc5a2b07 Automatic translations update 2021-06-12 02:11:17 +00:00
ArchiBot
977dfc55cc Automatic translations update 2021-06-10 02:22:27 +00:00
ArchiBot
658e7c21b1 Automatic translations update 2021-06-08 02:33:18 +00:00
Archi
84d18874a2 Avoid saving the same content in SerializableFile calls
Normally this should not matter and it does not, but https://github.com/JustArchiNET/ASF-ui/pull/1409#issuecomment-855873098 highlighted a potential enhancement idea in which the caller requests ASF to save the same content as currently exists. Since write operation could emit unnecessary event which forces ASF to start/stop/restart bot/process, I believe that it's justified to add a read operation in front of it to ensure that the file actually needs to be written over.
2021-06-07 14:34:15 +02:00
ArchiBot
36a7e1f1fe Automatic translations update 2021-06-06 02:37:40 +00:00
ArchiBot
1ca6debef5 Automatic translations update 2021-06-04 02:59:47 +00:00
ArchiBot
91f64c52d8 Automatic translations update 2021-05-31 03:13:11 +00:00
Archi
df8967b79d Update Strings.Designer.cs 2021-05-30 17:21:43 +02:00
Archi
2c2ee38f57 Correct BotPointsBalance string 2021-05-30 17:21:18 +02:00
Archi
7e75e4c8ab Misc 2021-05-30 17:12:39 +02:00
Archi
299f2ef934 Close V5.1.0 release with one more breaking change
Technically I don't agree with R# about EResultResponse, neither the roslyn analyzers, but I also don't see a reason why it couldn't be just ResultResponse as suggested.
2021-05-30 17:05:43 +02:00
Archi
ae9f3bd380 Post-cleanup after #2330 2021-05-30 17:02:58 +02:00
Chr_
ad9a0d6768 Commands added: (#2330)
* add `BotPointsBalance` strings

* add command `points`

* Merge branch 'main' of https://github.com/chr233/ArchiSteamFarm into main

* reset changes to `ResponseRedeem` by mistake

* fix code style
GetPointsBalance now returns `uint` instead of `int`

* fix code style

* fix code style
2021-05-30 16:42:08 +02:00
ArchiBot
da615677c0 Automatic translations update 2021-05-30 03:11:15 +00:00
Archi
93af13ec47 I missed one call 2021-05-29 21:10:18 +02:00
Archi
4a9c8b59d6 Add workaround for https://github.com/SteamRE/SteamKit/pull/992 2021-05-29 21:04:13 +02:00
ArchiBot
fa8fbee67f Automatic translations update 2021-05-29 03:07:16 +00:00
ArchiBot
552652b5bb Automatic translations update 2021-05-26 02:47:42 +00:00
ArchiBot
716acb0468 Automatic translations update 2021-05-25 02:42:38 +00:00