Ske
c5697b33e2
Finally retire the PKMember setters!
2020-06-29 14:15:30 +02:00
Ske
281b669391
Refactor member updates to use a patch object
2020-06-29 13:57:48 +02:00
Ske
472e556ef0
Pass proper allowed_mentions when sending webhook messages
2020-06-28 20:26:14 +02:00
Ske
9420cb56f8
Show sorted field on the long list by default
2020-06-28 18:14:59 +02:00
Ske
3207fcff1b
Fix guild ID row name in query
2020-06-26 15:07:51 +02:00
Ske
e4d51b5198
Explicitly check for bot/WH users before running command handler
2020-06-26 01:49:51 +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
bb75519f6b
Properly handle unauthorized log channel access
2020-06-25 09:14:05 +02:00
Ske
50b5a8fbee
Fix changing autoproxy settings with no system_guild row
2020-06-24 17:50:12 +02:00
Ske
2e8d044ca5
Only rebuild docs if the docs folder changes
2020-06-24 17:21:35 +02:00
Ske
0ee22813fa
Don't trim inner string when matching proxy tags
2020-06-24 17:19:01 +02:00
Ske
178e256583
Fix system guild settings model mismatch
2020-06-24 16:52:49 +02:00
Ske
a83e9306bb
Reimplement autoproxy escape character
2020-06-24 16:48:55 +02:00
Ske
3e297178c7
Hopefully fix user cache error in ReactionAdd
2020-06-24 16:47:34 +02:00
Ske
3b47785aa0
Fix front percent lookup
...
Dapper can't map lists of ID types in an input position so we select it to a plain ulong list :)
2020-06-24 14:02:47 +02:00
Ske
4ac6465648
Fix system guild helper method (again?)
2020-06-24 14:02:47 +02:00
Ske
447b986706
Add dispname -> displayname alias
2020-06-23 09:59:39 +02:00
Ske
fe1ef2da0b
Site HTML formatting is broken, skip it
2020-06-22 14:46:09 +02:00
Ske
3e2f20fc04
Use standard Gem-style theme references
2020-06-22 14:43:46 +02:00
Ske
d4f2338246
Use the correct build destination to publish from
2020-06-22 14:37:12 +02:00
Ske
9eb982c762
Commit bundle config and lockfile
2020-06-22 14:34:59 +02:00
Ske
9bed72c18f
Attempt 2 at GitHub Actions for site deploy
2020-06-22 14:29:26 +02:00
Ske
d89f76ff46
Add GitHub Action to build and deploy website
2020-06-22 14:21:07 +02:00
Astrid and GitHub
09624340ec
Merge pull request #186 from BeeFox-sys/feature/displayname-member-argument
...
Feature - display name as a member argument
2020-06-22 14:00:27 +02:00
Ske
96b98c7ed8
Add branch renaming notice
2020-06-22 13:37:10 +02:00
Ske
6fa76e85c4
Make duration parsing case-insensitive
2020-06-21 16:07:14 +02:00
Ske
d3cf382e3b
Migrate to date/time format extension methods
2020-06-21 16:05:04 +02:00
Ske
dcffbef805
Migrate to more privacy helper extensions
2020-06-21 15:51:08 +02:00
Ske
84d5adf907
Fix build errors from DSP update
2020-06-21 15:34:32 +02:00
Ske
34f4ff4e1b
Upgrade DSharpPlus version to 4.0.0-nightly-00707
...
This fixes passing an empty mention array to SendMessageAsync, making our workaround obsolete
2020-06-21 15:11:18 +02:00
Ske
a31782864d
Fix message count and created not being mapped properly
...
This weirdly only happens when going through ListedMember, perhaps the inheritance is making it so Dapper doesn't detect the backing field or soemthing... Adding a setter to the autoproperty makes things work, though.
2020-06-21 14:52:39 +02:00
Ske
378c49cb20
Remove 60+ (whew) SanitizeMentions() calls
2020-06-20 17:36:03 +02:00
Ske
2c35649ef0
Use AllowedMentions to disable mentions everywhere by default
2020-06-20 17:33:10 +02:00
Ske
ff7b728762
Merge branch 'feature/granular-privacy'
2020-06-20 16:25:08 +02:00
Ske
368320abf4
Add warning when setting avatar privacy with no server avatar
2020-06-20 16:10:36 +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
Astrid and GitHub
43ae47026a
Merge pull request #185 from acw0/bugfix/auttaja
...
Add support for Auttaja webhook message logs
2020-06-19 20:14:22 +02:00
Ske
b0f3aa9994
Reorganize .gitignore
2020-06-19 13:04:10 +02:00
Ske
8df42f7d92
Ignore bot reactions
2020-06-18 17:49:43 +02:00
Astrid and GitHub
68eeb858ec
Merge pull request #184 from acw0/feature/gearbot
...
Add GearBot to log cleanup
2020-06-18 17:43:24 +02:00
Ske
5075565d2f
Default to UTC given no system in member lists
2020-06-18 17:41:14 +02:00
Ske
7e8e1f1b8c
Don't try paginating with empty results
2020-06-18 17:40:51 +02:00
Ske
27c8100cac
Get rid of switch exhaustiveness compiler warning
2020-06-18 17:34:03 +02:00
Ske
dd9cc3ef0c
Respect description privacy when searching members
2020-06-18 17:33:37 +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
761270f0c3
Clean up member privacy command
2020-06-17 23:06:49 +02:00
Ske
dd2690c3f4
Get rid of compiler warning
2020-06-17 22:39:54 +02:00
Ske
78f83339ae
Update reference to OpenAPI specification
2020-06-17 22:13:01 +02:00
Ske
244815d6c3
Update OpenAPI specification
2020-06-17 22:12:00 +02:00
Ske
327cd0aafd
Update documentation for privacy changes
2020-06-17 21:55:39 +02:00
Ske
e92700f339
Comment out color privacy stuff for now (revisit later?)
2020-06-17 21:51:40 +02:00
Ske
627f544ee8
Migrate API to ASP.NET Core Auth services + refactor
2020-06-16 01:15:59 +02:00
Ske
7fde54050a
Avoid a blank overflow page when showing paginated cards ( closes #171 )
2020-06-15 13:00:28 +02:00
Ske
5280e48b09
Properly check ShowProxyTags when printing proxy tags
2020-06-15 12:55:02 +02:00
Ske
21f8caf006
Update type signature of MessageContext rows
2020-06-15 12:54:22 +02:00
Ske
5aa55359b3
Always return a row from message_context even with both system and guild is undefined ( closes #183 )
2020-06-15 12:54:00 +02:00
Ske
088bc15e5e
Upgrade Autofac dependency
2020-06-15 00:52:20 +02:00
Ske
ca882dba73
Add more performance metrics
2020-06-14 22:19:12 +02:00
Ske
b9cbd241de
Migrate to type-safe model ID structs
2020-06-14 21:37:04 +02:00
Ske
e5ac5edc35
Refactor and categorize tests
2020-06-14 20:22:29 +02:00
Ske
4ea06b939a
Add test for returned proxy tags
2020-06-14 19:20:02 +02:00
Ske
0f041c2e3c
Add unit test project and some early tests
2020-06-14 18:56:53 +02:00
Ske
2d43c17f9e
Add pk;member list as alias for pk;system list
2020-06-14 18:56:35 +02:00
Ske
55b1c6499d
Remove duplicated ProxyName function
2020-06-14 15:37:07 +02:00
Ske
c780781184
Remove unused imports
2020-06-13 23:12:44 +02:00
Ske
d135042a58
Change default console log level back
2020-06-13 22:39:19 +02:00
Ske
2702c45b4f
General bits of cleanup
2020-06-13 22:20:24 +02:00
Ske
4b69ef806a
Properly support KeepProxy after refactor
2020-06-13 22:16:04 +02:00
Ske
6d06474d26
Refactor sort/filter code once again
...
Now we handle sorting on the bot side, but still filter in the database
2020-06-13 21:49:31 +02:00
Ske
0bb8d2b917
Add own member checks back to the avatar mutators
2020-06-13 20:23:06 +02:00
Ske
f1b28b7fb6
Move schema migration stuff to Database
2020-06-13 19:54:16 +02:00
Ske
1d1b7b8716
Migrate GetSystemByToken
2020-06-13 19:44:01 +02:00
Ske
c927967c3b
Migrate GetSystemById
2020-06-13 19:42:04 +02:00
Ske
511cf0ab55
Get rid of some unused ctors
2020-06-13 19:41:51 +02:00
Ske
90ac186183
Extract Database to interface
2020-06-13 19:36:43 +02:00
Ske
70df9cd893
Fix API project build
2020-06-13 19:21:24 +02:00
Ske
1c2ebdc658
Fix proxy blacklist command
2020-06-13 19:19:13 +02:00
Ske
c875c8af9f
Various small fixes, setting guild config now works
2020-06-13 19:15:50 +02:00
Ske
2038f023a0
Move count stat collecting to raw SQL
2020-06-13 19:15:29 +02:00
Ske
767a37e637
Use async transactions for AddSwitch
2020-06-13 19:14:42 +02:00
Ske
37b99f9521
Wrap DbTransaction too
2020-06-13 18:49:05 +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
ed511a6236
Refactor server config models/commands
2020-06-13 13:58:27 +02:00
Ske
23c595f675
Extract ProxyTag to separate file
2020-06-13 13:18:21 +02:00
Ske
cb8f29cc47
Remove setters where possible
2020-06-13 13:11:08 +02:00
Ske
e8b69dfe29
Remove JSON attributes from models
2020-06-13 13:06:41 +02:00
Ske
292676b694
Optimize last message search in member list view
2020-06-13 02:45:06 +02:00
Ske
d246c9bf33
Change HID function types to char(5) as in DB
2020-06-13 01:54:29 +02:00
Ske
920c8cff01
Optimize message count migration
2020-06-13 01:25:12 +02:00
Ske
8ac2f1e4b8
Move hid generation to the database. Closes #157 .
2020-06-13 00:43:48 +02:00
Ske
c39c51426f
Remove setters for function models
2020-06-13 00:42:25 +02:00
Ske
761a82740f
Remove unused functions and classes
2020-06-12 23:55:25 +02:00
Ske
729930a562
Move system tag/icon from ProxyMember to MessageContent
2020-06-12 23:30:10 +02:00
Ske
2a39489c4d
Move proxy name/avatar logic to the bot itself
2020-06-12 23:24:36 +02:00
Ske
3d62a0d33c
Split message/proxy data up in MessageContext and ProxyMember
2020-06-12 23:13:21 +02:00
Ske
ba441a15cc
Too many refactors in one:
...
- Allowed adding ephemeral(ish) views and functions
- Moved message_count to a concrete database field
- Moved most proxy logic to a stored procedure
- Moved database files around and refactored schema manager
2020-06-12 20:29:50 +02:00
Ske
24f1363bb0
Return AsyncDisposable from DbConnectionFactory
2020-06-12 00:54:50 +02:00
Ske
49acc4d9e2
Refactor proxy handling code
...
- Move reaction handlers to the ReactionAdded event instead of
ProxyService
- Split tag matching off into ProxyTagParser
- Split autoproxy matching off into Autoproxier
- General cleanup and simplification
2020-06-11 23:22:53 +02:00