Commit Graph

1045 Commits

Author SHA1 Message Date
JustArchi
f118ca592e Fix broken comments 2018-05-19 21:47:04 +02:00
JustArchi
4b24227d3f Fix build 2018-05-19 20:54:11 +02:00
JustArchi
75a93a3baa Misc
This is no longer a digit.
2018-05-19 20:53:49 +02:00
JustArchi
ed2a068c51 Cleanup after #794
@vital7

Steam.cs:
- Add missing constructor for json deserialization
- Change name into UserPrivacy since we use it for both request and response, no longer response only
- Move ECommentPermission one level above, it's not internal member of PrivacySettings
- Make UserPrivacy constructor accept PrivacySettings, since PrivacySettings is internal and not private.
- Make ECommentPermission underlying type of byte

ArchiWebHandler.cs:
- Put function in proper place alphabetically
- Cast CommentPermission to new underlying type of byte
- Remove mapping, AWH should not be in charge of correcting a caller, unless that caller can't be corrected earlier (e.g. direct Steam response). Since Bot is in charge of calling AWH, Bot should do the correction, not AWH.

Bot.cs:
- Change command to !privacy bot n,n,n,n,n,n, this makes it possible for mixing it with enum members (such as !privacy bot public,private,friendsonly,public,public), which would be preferred way of execution instead of cryptic numbers.
- Make appropriate mapping between general and comments, since userspace is in charge of that.
- Add comments and correct creating UserPrivacy object.
- Make the default option private and let user skip extra options if he wants to edit e.g. only profile to public.

Apart from that, general error handling and a lot of other misc fixed, including renaming NonZeroResponse to NumberResponse, which makes more sense.
2018-05-19 20:50:26 +02:00
Vital7
9b7dfd065d Change privacy settings feature (#794)
* Change privacy settings feature

* Fixes

* Little fix

* More fixes

* Fix little fuckup
2018-05-19 19:52:14 +02:00
JustArchi
7c133a799b Extend debug to databases too 2018-05-18 21:12:33 +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
cbfc7d0e42 Accelerate initial bots startup
Files can be read in parallel after all
2018-05-13 19:19:27 +02:00
JustArchi
ad59ed3e4a Misc BGR improvements
Include returned items info as an extra and assume that first entry is name only
2018-05-12 19:42:26 +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
c775b69d50 ArchiBoT/ASF code unification 2018-04-23 23:17:56 +02:00
JustArchi
08839e61fc ArchiBoT/ASF code unification 2018-04-23 22:24:14 +02:00
JustArchi
20926ee14e ReSharper code review 2018-04-21 21:52:04 +02:00
JustArchi
66c80e618f Closes #764 2018-04-13 09:17:27 +02:00
Vital7
205c6bf60b Small logic fix (#778) 2018-04-08 03:02:22 +02:00
JustArchi
a0440a9ec9 Slightly improve PlayingWasBlocked logic 2018-03-24 20:37:59 +01:00
Vital7
60d88b2c1d Steam logins can contains spaces 2018-03-22 22:33:44 +03:00
JustArchi
1da3e3923c Misc 2018-03-18 00:21:47 +01:00
JustArchi
251cd74b61 Misc 2018-03-16 14:13:34 +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
e7b6f43b1d Misc 2018-03-15 02:17:54 +01:00
JustArchi
107a75fd61 Limit BGR with gifts limiter 2018-03-11 12:30:55 +01:00
JustArchi
fba1a2257e ArchiBoT/ASF code unification 2018-03-09 16:12:20 +01:00
JustArchi
3682eefc02 Code review 2018-03-09 15:43:25 +01:00
JustArchi
2d65fed664 Rename BKR extensions to be more correct 2018-03-08 10:53:11 +01:00
JustArchi
7957920683 Improve background keys redeemer verbosity 2018-03-08 10:43:39 +01:00
JustArchi
4ba026a91f Make confirmation's type detection more robust 2018-03-07 17:03:39 +01:00
JustArchi
8ec900147e Misc 2018-03-06 10:14:48 +01:00
JustArchi
0fd06ac3b5 Code review 2018-03-05 19:01:35 +01:00
JustArchi
0b78d5ad75 Further slight change of output format 2018-03-04 08:42:33 +01:00
JustArchi
cdbfb8fc20 Move the purchase result to game's name in background keys redeemer 2018-03-03 18:02:52 +01:00
JustArchi
c18964ceef Greatly improve ASF background operations
I hated that Forget() for quite a long time now, finally this code looks much better now.
2018-02-26 18:48:57 +01:00
JustArchi
cb981701b2 Misc 2018-02-26 09:10:26 +01:00
JustArchi
4a5665c92b Switch to proper OrderedDictionary 2018-02-26 08:53:14 +01:00
JustArchi
9c8c97e788 Use SortedDictionary also in IPC and File read 2018-02-26 06:30:31 +01:00
JustArchi
98e73c3fb4 Add more optional debugging 2018-02-25 18:57:06 +01:00
JustArchi
60005f895f Misc 2018-02-25 18:36:17 +01:00
JustArchi
d51752d577 Misc 2018-02-25 17:54:24 +01:00
JustArchi
0a2be46b68 Misc 2018-02-25 17:40:23 +01:00
JustArchi
4a90470ccd Add workaround for rare Steam fuckup
Under rare Steam maintenance it's possible that we can get one rare logon session replaced for no apparent reason.
2018-02-24 23:40:28 +01:00
JustArchi
6c43bdf3b4 Misc 2018-02-22 18:23:50 +01:00
JustArchi
5a3b897dbb Add extended validation for GamesToRedeemInBackground 2018-02-22 17:53:38 +01:00
JustArchi
9691e2a37b Improve FileSystemWatcher 2018-02-17 20:42:47 +01:00
JustArchi
c968716940 Add support for .keys file to FileSystemWatcher 2018-02-17 19:29:33 +01:00
JustArchi
2db5663271 Misc 2018-02-16 18:26:05 +01:00
JustArchi
c5344d2020 Add post-api hook to GamesToRedeemInBackground 2018-02-16 11:09:26 +01:00
JustArchi
3b234f0a4d Add /Api/GamesToRedeemInBackground
P.S. Not tested yet, too lazy to do so as of now.
2018-02-14 19:14:33 +01:00
JustArchi
c59e458e2a Further increase delay 2018-02-13 21:36:43 +01:00