Commit Graph

511 Commits

Author SHA1 Message Date
JustArchi
7a3ffe3eb6 Misc 2017-01-20 18:05:57 +01:00
JustArchi
9fab4fedfc Allow 5 HeartBeat failures before initiating reconnect
This is because Steam network might literally die for several minutes WITHOUT our fault, so scheduling reconnect right away will not achieve anything. The way how it's right now seems perfect - we allow up to 5 minutes of HeartBeat() failures, then initiate force reconnect, and if that one fails for 2 minutes (total of 7 of downtime), we abandon the instance. This should be a really good balance between random Steam network quirks, and our broken SteamClient that might need to be re-created if things go seriously wrong
2017-01-20 18:04:37 +01:00
JustArchi
585dd3386c Improve unusedKeys to take in account failures as well 2017-01-19 16:37:17 +01:00
JustArchi
e7716da25b Misc 2017-01-18 18:09:26 +01:00
JustArchi
f3b53d3da2 Implement ArchiBoT way of skipping unreleased games for farming purpose, closes #425 2017-01-17 17:59:40 +01:00
JustArchi
c71e8efaf5 Fix potential response exploit
Old code didn't check properly if steamID is the owner if parsing message failed, which was possible e.g. with !play --
It didn't allow anything in particular, but it triggered unwanted situation of responding to non-owner steamIDs with parsing error, and that is unwanted.
2017-01-16 01:13:48 +01:00
JustArchi
43e1228c16 Code cleanup 2017-01-15 16:05:01 +01:00
JustArchi
f47c401b1e Implement latest ArchiBoT HeartBeat() code 2017-01-15 16:03:54 +01:00
JustArchi
da80010585 Misc 2017-01-11 18:02:15 +01:00
JustArchi
cf23d77dfb Don't launch statistics on debug builds
Builds, not in debug mode, I have enough of forbidden requests to my own API
2017-01-11 15:55:28 +01:00
JustArchi
283cfce728 Make GetSteamApiKey() multi-thread aware 2017-01-11 15:41:02 +01:00
JustArchi
de897aaa92 Rewrite #414 in a way that makes me happy 2017-01-11 15:22:00 +01:00
Ilia
0ead38f069 obtaining apikey and its state 2017-01-09 15:05:20 +02:00
JustArchi
44d42bdefa #408 2017-01-07 14:49:54 +01:00
JustArchi
432cc54521 Do not code while drunk 2017-01-07 03:27:15 +01:00
Łukasz Domeradzki
431ea6c224 Merge pull request #400 from JustArchi/l10n
Localization support
2017-01-06 19:32:27 +01:00
JustArchi
2941ce59df Finish working on first localization attempt 2017-01-06 19:29:47 +01:00
JustArchi
ae2e619830 Localizing... 2017-01-06 19:14:26 +01:00
JustArchi
8614ef6376 Localizing... 2017-01-06 18:02:45 +01:00
JustArchi
85a1b1cb29 Fix unrecognized commands with special languages (e.g. Turkish) 2017-01-06 13:48:34 +01:00
JustArchi
b2b11fe807 Localizing... 2017-01-06 13:20:36 +01:00
JustArchi
c51061f0fb Start working on translations 2017-01-06 12:11:11 +01:00
JustArchi
4d0c39606a Misc 2017-01-06 11:49:06 +01:00
JustArchi
ab020ed5a2 Improve the case of invalid ASF 2FA credentials 2017-01-05 02:27:54 +01:00
JustArchi
3a0afba858 Add unused keys response 2017-01-05 01:49:58 +01:00
JustArchi
a005886647 Misc #393 2017-01-04 10:22:32 +01:00
JustArchi
8208bf30ae Misc #393 2017-01-04 10:17:11 +01:00
JustArchi
c293ad6809 Add missing returns, closes #394 2017-01-03 17:46:28 +01:00
JustArchi
78a86997b6 Closes #393 2017-01-03 14:52:41 +01:00
JustArchi
648c2f2509 Closes #392 2017-01-02 22:17:06 +01:00
JustArchi
ba8d70aebb Copyright update 2017-01-02 20:05:21 +01:00
JustArchi
8edbe3321a Goodbye Steam Sale
Keeping core around for eventual next one
2017-01-02 19:59:33 +01:00
JustArchi
2c1127e57b Change default LoginID
Various bad scripts and other bots use LoginID of 0, so we will use LoginID of 1242, or whatever else, as long as it's static
2016-12-27 17:44:00 +01:00
JustArchi
9722059bb0 Don't crash on SteamDirectory failure 2016-12-27 16:18:42 +01:00
JustArchi
33edc81116 Add farming time approximation
Because @MaduRUDE asked nicely
2016-12-26 22:07:49 +01:00
JustArchi
ec2c78ea81 Unify Forwarding and Distributing under RedeemingPreferences
Similar to TradingPreferences
2016-12-25 06:29:13 +01:00
JustArchi
d36eaebbfe Closes #383 2016-12-25 05:52:17 +01:00
JustArchi
9d882784ee Implement workaround for #380 2016-12-24 19:27:36 +01:00
JustArchi
30c69cf57c Move main ArchiLogger from ASF to Program
It makes more sense to put it in ASF class due to sharing potential, but I want to unify ArchiBoT logging and this makes it easier for maintenance
2016-12-23 18:49:52 +01:00
JustArchi
4219107d2b Closes #376 2016-12-23 04:03:51 +01:00
JustArchi
90d74de169 [EXPERIMENTAL] Queue discovery
Yes, you know my donation address
2016-12-23 03:01:37 +01:00
JustArchi
7fe65144c1 Code cleanup 2016-12-18 16:03:32 +01:00
JustArchi
0d2f3f09b0 Add limited info 2016-12-12 15:35:21 +01:00
JustArchi
9d0cc07d4e Reject clan invites when IsBotAccount
Also make it possible for quite rare situation of ASF accepting invite to SteamMasterClanID if it couldn't join due to group being non-public
2016-12-11 04:23:44 +01:00
JustArchi
31387fe6a1 Fix GamesPlayedWhileIdle for Paused CardsFarmer 2016-12-08 03:27:25 +01:00
JustArchi
82a992ee9c Misc 2016-12-08 00:43:09 +01:00
JustArchi
be01239114 More stability improvements 2016-12-08 00:37:42 +01:00
JustArchi
ac69473fb3 Fix GamesPlayedWhileIdle with family sharing 2016-12-05 00:24:11 +01:00
JustArchi
1a917a668c Misc 2016-12-04 20:41:01 +01:00
JustArchi
2165818e25 First set of fixes 2016-12-04 05:50:11 +01:00