Commit Graph

38 Commits

Author SHA1 Message Date
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 92e45a07ff refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral ac2671452d run dotnet format 2021-08-27 11:03:47 -04:00
Ske 41427db178 Use a proper user agent when fetching images 2021-08-23 22:53:58 +02: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
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
spiral 8956777c9a Fix "clear server avatar" confirmation message 2020-11-08 14:37: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 2794919728 Use "smart references" for member commands 2020-08-25 22:33:04 +02:00
Ske 8d01b580e2 Refactor system/member avatar code 2020-07-07 23:41:51 +02:00
Ske 36ed356d2b (...and make sure it's the correct message) 2020-07-07 14:50:58 +02:00
Ske b1ede87df2 (Re-)add confirmation when changing avatar by URL 2020-07-07 14:47:34 +02:00
Ske 0598c53f62 Migrate guild objects to the patch system 2020-06-29 15:20:28 +02:00
Ske 4f6a4c000d Fix setting server name/avatar with no row in the member_guild table 2020-06-25 22:23:15 +02:00
Ske 378c49cb20 Remove 60+ (whew) SanitizeMentions() calls 2020-06-20 17:36:03 +02:00
Ske c428d95479 Fix auth checking when looking up member avatar 2020-06-20 16:10:22 +02:00
Ske ae4e8f97d0 Add member avatar privacy 2020-06-20 16:00:50 +02:00
Ske 56eae82b0a Move most references to PKMember.Name to go through helper extepsions for privacy 2020-06-18 17:08:36 +02:00
Ske 0bb8d2b917 Add own member checks back to the avatar mutators 2020-06-13 20:23:06 +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
Ske a915ddb41c Extract system/member guild settings and refactor DB access
(also refactor MemberAvatar now that I'm here)
2020-06-13 16:03:57 +02:00
Ske d5c6e2baac Don't post an error after clearing avatar 2020-06-02 02:02:07 +02:00
Ske f803b9a392 Add a character limit to avatar URLs (256 for now) 2020-05-05 16:04:17 +02:00
Ske b927d0c2b7 Remove a few unnecessary extensions 2020-05-01 17:38:16 +02:00
Fennel 949dae6561 Add Extension Methods 2020-04-28 22:30:11 +02:00
Fennel c99784b9dc Fix Build Errors 2020-04-28 22:30:11 +02:00
Ske 373423e6c5 Restructure the rest of the commands 2020-03-04 18:13:36 +01:00
Ske d0d3579b17 Add server-specific member avatars 2020-02-12 17:42:12 +01:00
Ske 6d5004bf54 Large refactor and project restructuring 2020-02-12 15:16:19 +01:00
Ske 82dfe43d5a Rework caching
This does a *lot* of things. Essentially, it replaces the existing
individual proxy- and autoproxy caches on the bot end with a
global cache (in Core) that handles all the caching at once, and
automatically invalidates the cache once something changes in the
datastore.

This allows us to do proxying and autoproxying with *zero database
queries* (best-case).
2020-02-01 14:40:57 +01:00
Ske 125ea81ec3 Move command functions around 2020-02-01 13:03:44 +01:00