Commit Graph

36 Commits

Author SHA1 Message Date
spiral
7afba4ea95
chore: code cleanup (mostly whitespace / remove unused imports) 2022-03-30 04:36:22 -04:00
spiral
982812333b
feat: rewrite database schema for localized autoproxy 2022-03-21 23:43:33 -04:00
spiral
1a38635a12
fix: don't crash when autoproxy member is deleted 2022-03-19 21:55:59 -04:00
spiral
df6a6fcf12
refactor: don't DI IDatabase and ModelRepository into bot command classes 2022-01-22 03:05:01 -05:00
spiral
56d07e0f2d
feat: pk;config 2021-11-29 21:35:21 -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
33cabff359 Clean up autoproxy timeout command code
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 10:34:53 +02:00
spiral
8219aaa5bd
Add support for sub-hour latch timeout (just use ParsePeriod) 2021-04-13 14:55:46 +01:00
Ske
ef614d07c3 Do the Big Rename 2021-01-31 16:16:52 +01:00
Ske
da9d84a197 Get rid of more D#+ references 2021-01-15 11:29:43 +01:00
Ske
04109a133f Merge branch 'main' into newdiscord 2021-01-15 10:35:20 +01:00
Ske
50b8685e44 Clarify timeout overflow message 2020-12-24 22:27:03 +01:00
Ske
4e67c79154 Fix autoproxy timeout message 2020-12-24 19:42:04 +01:00
Ske
ad921e17e3 Fix autoproxy timeout overflow 2020-12-24 19:41:46 +01:00
Ske
47b16dc51b Port more things! 2020-12-24 14:52:44 +01:00
Ske
db4e41a232 Convert autoproxy timeout to use seconds 2020-12-08 12:57:17 +01:00
spiral
29d9b91299 Move AutoproxyRoot to CommandTree, add documentation 2020-11-22 09:44:04 -05:00
spiral
68b439257d Tweak documentation 2020-11-22 09:42:40 -05:00
spiral
8e5fb6520b Add configurable autoproxy latch timeout 2020-11-22 09:42:40 -05:00
spiral
37294b68da Add disabling autoproxy per-account 2020-11-22 09:42:40 -05: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
a2930acbad Add more aliases to autoproxy off 2020-07-09 15:11:04 +02:00
Ske
0598c53f62 Migrate guild objects to the patch system 2020-06-29 15:20:28 +02:00
Ske
50b5a8fbee Fix changing autoproxy settings with no system_guild row 2020-06-24 17:50:12 +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
b9cbd241de Migrate to type-safe model ID structs 2020-06-14 21:37:04 +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
Fennel
c99784b9dc Fix Build Errors 2020-04-28 22:30:11 +02: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