Commit Graph

69 Commits

Author SHA1 Message Date
spiral
2c4fbf249f
fix: check own system in pk;s description, pk;s icon 2021-12-24 19:19:50 -05:00
spiral
67ed03067a
fix: missing return in pk;system colour 2021-12-23 23:17:25 -05:00
spiral
546cdc93c4
fix: change use target everywhere in SystemConfig instead of ctx.System 2021-12-23 23:02:21 -05:00
spiral
816dfaafb6
fix: re-add privacy checks to SystemConfig
... oops
2021-12-23 22:50:16 -05:00
spiral
ec027f0366
fix: check for attachments in pk;system banner 2021-12-23 22:49:15 -05:00
spiral
aacf5909a9
feat: clean up command parsing for pk;system 2021-12-05 17:21:31 -05:00
spiral
56d07e0f2d
feat: pk;config 2021-11-29 21:35:21 -05:00
spiral
4450ae4214
feat: go through some TODOs 2021-11-26 22:02:58 -05:00
spiral
1918c56937
feat: upgrade to .NET 6, refactor everything 2021-11-26 21:10:56 -05:00
spiral
0efaab6d95
refactor: don't use 'out' in IDiscordCache methods
this change is required for async cache (.NET doesn't support async ref/out params)
2021-11-18 13:11:02 -05:00
spiral
3e2441cf3a
feat: add 'pk;s <id> avatar' command 2021-10-30 19:02:21 -04:00
spiral
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral
e3fa0f3b32
fix(MatchRaw commands): don't skip matching flags when setting new value 2021-09-26 17:30:30 -04:00
spiral
9914dd719c
feat: add -raw flag to servertag 2021-09-13 03:26:24 -04:00
spiral
b390c8ab62
fix MatchRaw commands one more time :/ 2021-09-13 02:33:34 -04:00
spiral
a165a42046
fix MatchRaw commands *again* 2021-09-13 01:57:31 -04:00
spiral
bae883c11f
refactor: consolidate [x]TooLongErrors into StringTooLongError 2021-09-13 01:57:15 -04:00
spiral
95e0fcc36d
fix: missing returns for pk;s tag command 2021-09-06 20:07:46 -04:00
spiral
023d2577e5
fix: don't skip flags before MatchClear/MatchRaw 2021-09-06 19:09:43 -04:00
Spectralitree
0553e42eca
refactor: tweak -raw usage (#341)
Co-authored-by: spiral <spiral@spiral.sh>
2021-08-27 19:20:14 -04:00
spiral
ac2671452d
run dotnet format 2021-08-27 11:03:47 -04:00
spiral
87676c2045
fix: show correct command suggestion to edit server tag 2021-08-25 12:33:24 -04:00
Ske
41427db178 Use a proper user agent when fetching images 2021-08-23 22:53:58 +02:00
spiral
9d4006b056
Add server-specific system tag 2021-08-02 17:22:06 -04:00
spiral
e144571904
Add banner (large) image 2021-08-02 13:46:12 -04:00
spiral
dcc15dc847
Move mediaproxy URL rewriting to ProxyService
This shows full size avatars in API / cards.

Also, rewrite URLs currently stored with media.discordapp.net "back" to
cdn.discordapp.com before sending them to users.
2021-08-01 12:51:54 -04:00
spiral
ab6ab127dd
move Context#PromptYesNo to buttons 2021-07-02 06:40:40 -04:00
Mikaela Szekely
6395872f2d allow pk;system proxy to take a server ID
So people can disable proxying in a server without outing themselves :)
2021-05-06 10:19:15 -06:00
Spectralitree
29561662ab Fix typo in system color 2021-04-06 12:27:39 +02:00
Spectralitree
3603d52e9e Add group and system colors 2021-03-28 12:02:41 +02:00
Ske
ef614d07c3 Do the Big Rename 2021-01-31 16:16:52 +01:00
Ske
2e0c30eb5d Port some more commands, mostly for embeds 2020-12-25 12:56:46 +01:00
Ske
47b16dc51b Port more things! 2020-12-24 14:52:44 +01:00
Ske
05334f0d25 Converted enough to send the system card 2020-12-22 16:55:13 +01:00
spiral
05f1ee92ea
DRY-ify checking URL length for avatars 2020-11-22 15:43:38 -05:00
dev-kittens
dfacbc51ab Confirm before clearing (most) entity properties 2020-10-04 08:53:07 +00:00
Ske
c7612df37e Major database refactor (again) 2020-08-29 13:46:27 +02:00
Ske
203dbc65a1 Replace most "code-escaped" literals with properly-escaping helpers 2020-08-25 22:44:52 +02:00
Ske
1bb5d203df Various additional tweaks/additions to groups 2020-08-20 21:43:17 +02:00
kittens
fd0e46f40d
Add -yes flag to CheckYesNo (#198) 2020-07-21 02:10:26 +02:00
Ske
9f523b3c5f Refactor system/member privacy commands 2020-07-08 00:47:16 +02:00
Ske
1449234a84 Migrate more commands to "MatchClear" 2020-07-08 00:00:23 +02:00
Ske
8d01b580e2 Refactor system/member avatar code 2020-07-07 23:41:51 +02:00
Ske
0598c53f62 Migrate guild objects to the patch system 2020-06-29 15:20:28 +02:00
Ske
9c1efc7886 Move system updates to the same patch system as members 2020-06-29 14:39:19 +02:00
Ske
d3cf382e3b Migrate to date/time format extension methods 2020-06-21 16:05:04 +02:00
Ske
378c49cb20 Remove 60+ (whew) SanitizeMentions() calls 2020-06-20 17:36:03 +02:00
BeeFox-sys
721a4502bb
Feature/granular member privacy (#174)
* Some reasons this needs to exist for it to run on my machine? I don't think it would hurt to have it in other machines so

* Add options to member model

* Add Privacy to member embed

* Added member privacy display list

* Update database settings

* apparetnly this is nolonger needed?

* Fix sql call

* Fix more sql errors

* Added in settings control

* Add all subject to system privacy

* Basic API Privacy

* Name privacy in logs

* update todo

* remove CheckReadMemberPermission

* Added name privacy to log embed

* update todo

* Update todo

* Update api to handle privacy

* update todo

* Update systemlist full to respect privacy (as well as system list)

* include colour as option for member privacy subject

* move todo file (why was it there?)

* Update TODO.md

* Update TODO.md

* Update TODO.md

* Deleted to create pr

* Update command usage and add to the command tree

* Make api respect created privacy

* Add editing privacy through the api

* Fix pronoun privacy field in api

* Fix info leak of display name in api

* deprecate privacy field in api

* Deprecate privacy diffrently

* Update API

* Update documentation

* Update documentation

* Remove comment in yml

* Update userguide

* Update migration (fix typo in 5.sql too)

* Sanatize names

* some full stops

* Fix after merge

* update migration

* update schema version

* update edit command

* update privacy filter

* fix a dumb mistake

* clarify on what name privacy does

* make it easier on someone else

* Update docs

* Comment out unused code

* Add aliases for `member privacy all public` and `member privacy all private`
2020-06-17 21:31:39 +02:00
Ske
90ac186183 Extract Database to interface 2020-06-13 19:36:43 +02:00
Ske
e176ccbab5 Several more database-y refactors
- DbConnectionFactory renamed to "Database", will now be the primary entry point for DB stuff
- Created IPKConnection interface mostly containing async extensions to IDbConnection, use this going forward
- Reworked the Connection/Command wrappers (that have performance/logging extensions)
- Probably more stuff that I forgot???
2020-06-13 18:31:20 +02:00