Commit Graph

552 Commits

Author SHA1 Message Date
spiral
3bc451eb4b
feat: move scheduled tasks to separate project 2021-10-15 06:27:38 -04:00
spiral
655d0d6c44
fix: add missing await 2021-10-06 19:49:11 -04:00
spiral
92c1b4de56
feat: add reaction checkmark on command message delete in DMs 2021-10-06 19:46:49 -04:00
spiral
ecce906c99
fix: add missing await 2021-10-05 03:17:51 -04:00
spiral
a546ebc888
fix: check correct length for fronthistory embed 2021-10-03 04:34:26 -04:00
spiral
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral
fb4aaad19f
lint 2021-09-26 22:50:08 -04:00
spiral
0517c76abf
feat: delete command messages with pk;msg -delete 2021-09-26 22:49:43 -04:00
spiral
fa66fbe247
move admin check to ContextChecksExt, allow pk;debug proxy for staff in support server 2021-09-26 20:42:08 -04:00
BeautifulPixel
7d60b3e7cf
Add switch editing functionality 2021-09-26 20:08: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
db5fae0fb4
feat: edit messages in threads 2021-09-24 19:03:40 -04:00
spiral
c472a7f6df
lint/fixes, add group patch validation 2021-09-22 13:48:34 -04:00
spiral
bc2c198a82
group import/export 2021-09-21 21:42:41 -04:00
spiral
07b12f39b0
aaaaaaa 2021-09-13 08:42:51 -04:00
spiral
78ab3f8bcd
feat: don't show an error when running raw pk;commands 2021-09-13 04:39:06 -04:00
spiral
d005358acc
feat: add channel-specific permcheck 2021-09-13 04:21:03 -04:00
spiral
9914dd719c
feat: add -raw flag to servertag 2021-09-13 03:26:24 -04:00
spiral
dec228d5bd
feat: add limit reach warning to pk;group new 2021-09-13 02:46:40 -04:00
spiral
b390c8ab62
fix MatchRaw commands one more time :/ 2021-09-13 02:33:34 -04:00
spiral
2973325e12
fix: don't try deleting pk;msg -delete message in DMs 2021-09-13 02:21:39 -04:00
spiral
13f5b63c59
feat: add last global restart time to pk;stats card 2021-09-13 01:57:51 -04:00
spiral
b3a8432039
fix: add NormalizeLineEndSpacing to pk;edit 2021-09-13 01:57:39 -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
b71e97a5e9
fix: actually pass group actioned/not actioned count properly to GenerateResponse
I hope this works. This code is all a mess. Refactor when?
2021-09-06 19:26:47 -04:00
spiral
023d2577e5
fix: don't skip flags before MatchClear/MatchRaw 2021-09-06 19:09:43 -04:00
spiral
ae5451d901
fix: description embeds missing format $ 2021-09-06 18:56:06 -04:00
spiral
7aaa89c65c
fix: don't automatically prompt user to unlink the current account if no arguments are passed 2021-08-27 22:27:40 -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
9e4f5d8e40
fix strings for group rename 2021-08-26 11:54:28 -04:00
spiral
4b944e2b20
feat: refactor external input handling code
- refactor import/export code
- make import/export use the same JSON parsing as API
- make Patch.AssertIsValid actually useful
2021-08-25 21:43:31 -04:00
spiral
f912805ecc
feat: make group member add/remove response code less confusing; add tests 2021-08-25 19:51:33 -04:00
spiral
82544cf9ce
tweak: don't expose hidden channel count in pk;permcheck 2021-08-25 15:58:55 -04:00
Alyx
c7fcf60fbf
feat: add checking for Use External Emoji permissions in pk;permcheck 2021-08-25 15:04:08 -04:00
spiral
b46561cb0a
refactor: move some commands out of Misc 2021-08-25 14:36:13 -04:00
spiral
603123777d
add limits to switch members and proxy tag length 2021-08-25 13:42:08 -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
Ske
4c17ee3d89 Fix proxying in channels without message history + reduce proxy latency 2021-08-08 21:56:24 +02:00
spiral
65cb937e07
feat: show relevant display option for chosen sort property in full list 2021-08-05 17:49:55 -04:00
spiral
2807906d79
feat: show display options in short member list 2021-08-05 17:48:31 -04:00
spiral
9fd4f327e0
refactor: clean up message logging 2021-08-04 00:41:51 -04:00
spiral
b9f73cadb7
feat: proxy debug command
Co-authored-by: Spectralitree <72747870+Spectralitree@users.noreply.github.com>
2021-08-03 21:06:14 -04:00
spiral
9d4006b056
Add server-specific system tag 2021-08-02 17:22:06 -04:00
spiral
28bcb35bb2
fix cache error on system messages 2021-08-02 16:18:39 -04:00
spiral
e144571904
Add banner (large) image 2021-08-02 13:46:12 -04:00
rladenson
1290594211 Removed a duplicate line of code 2021-08-02 00:05:10 -04:00
spiral
1cb4bc9287
Expose git version in 'pk;stats' and '/v1/meta' 2021-08-01 15:22:23 -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
d633cd4906
Hotfix for missing Discord API endpoint to edit thread webhook message
See https://github.com/discord/discord-api-docs/issues/3519
2021-07-28 02:23:01 -04:00
spiral
762158e857
Update different system error in MessageEdit 2021-07-28 02:19:37 -04:00
spiral
a8727f474b
Allow any linked account to edit/delete messages sent by the same system
Closes #375.
2021-07-27 11:39:37 -04:00
spiral
9d344a4ef9
Add confirmation when editing a message from DMs
Closes #373.
2021-07-17 20:39:12 -04:00
spiral
0e7bcb993e
Fix markdown formatting for privacy subject errors 2021-07-15 02:06:35 -04:00
spiral
7179e2dd1b
remove incorrect command aliases 2021-07-14 20:50:06 -04:00
spiral
8992cf8a3f
use context utils in Admin.cs 2021-07-14 19:59:22 -04:00
Astrid
467d0746bd
Merge pull request #368 from spiralw/feat/yes-no-buttons
Use buttons for all yes/no prompts
2021-07-14 18:26:00 +02:00
spiral
30d1bf6926
Fix WarnOnConflict
postgres doesn't like 'value = null' for some reason
Closes #223.
2021-07-13 02:31:06 -04:00
spiral
c2b6e0eeed
Add groups to pk;admin 2021-07-08 10:04:05 -04:00
spiral
799d6fa300
Fix wording 2021-07-02 17:59:27 -04:00
spiral
ab6ab127dd
move Context#PromptYesNo to buttons 2021-07-02 06:40:40 -04:00
spiral
c727a71161
Add "flat" front history view (percentages add up to 100%) 2021-06-21 11:30:38 -04:00
spiral
8cbb2424d7
Throw "no registered switches" error also with frontpercent 2021-06-16 08:56:52 -04:00
Ske
8740230c3d Add a few utility admin commands
Signed-off-by: Ske <voltasalt@gmail.com>
2021-06-08 19:37:44 +02:00
Ske
41f1c58a9f Merge branch 'new-shard-handler' 2021-06-08 10:20:59 +02:00
Ske
118f2d49a6 WIP new shard implementation 2021-06-08 10:19:54 +02:00
Spectralitree
06c0e05396 fix looking up private group descriptions 2021-05-24 21:18:57 +02:00
Spectralitree
5a649d7751 Fix looking up private group icons 2021-05-24 21:05:27 +02:00
Astrid
74128ee4c4
Merge pull request #327 from spiralw/fix/msg-edit-dm
Fix error when trying to edit message in DM without link
2021-05-08 21:38:33 +02:00
spiral
239afd9b10
Fix error when trying to edit message in DM without link 2021-05-07 22:31:43 +01:00
spiral
1f0c75d677
Add logging message edits 2021-05-07 17:35:09 +01:00
Astrid
d719303053
Merge pull request #311 from Spectralitree/rawdisplaynames
Add raw display name printing
2021-05-07 10:37:54 +02: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
Ske
3d624b39e4 Add message editing command
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 12:33:30 +02:00
Ske
33cabff359 Clean up autoproxy timeout command code
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 10:34:53 +02:00
Astrid
75630e5546
Merge pull request #312 from spiralw/feat/sub-hour-latch-timeout
Add support for sub-hour latch timeout
2021-05-03 10:29:50 +02:00
Astrid
2e09382fa7
Merge pull request #313 from spiralw/feat/new-member-avatar
feat: add avatar to member via attachment on 'pk;member new' command
2021-05-03 09:19:59 +02:00
spiral
1e5ba5f985
feat: case-insensitive "text" keyword matching for proxy tags 2021-05-01 19:17:35 +01:00
Astrid
752cd5dbfd
Merge pull request #317 from spiralw/feat/fronters-only
Add flag to remove 'no fronter' item on frontpercent card
2021-04-22 18:35:24 +02:00
Astrid
fbe895b9bf
Merge pull request #314 from starshine-sys/main
add "author" subcommand to pk;msg
2021-04-22 18:34:11 +02:00
spiral
dfa25b77c7
Add flag to remove 'no fronter' item on frontpercent card 2021-04-22 01:18:41 +01:00
spiral
85615b3f68
fix error message on invalid guild ID 2021-04-19 21:38:03 +01:00
Starshine System
58a51ee9d2
add "author" subcommand to pk;msg 2021-04-14 17:06:44 +02:00
spiral
d3e3cb0abc
feat: add avatar to member via attachment on 'pk;member new' command 2021-04-14 13:56:41 +01:00
spiral
8219aaa5bd
Add support for sub-hour latch timeout (just use ParsePeriod) 2021-04-13 14:55:46 +01:00
Spectralitree
e016229be5 Add raw display name printing 2021-04-13 11:25:05 +02:00
spiral
a5ad16780c
Fix matching Discord Stable links (oops) 2021-04-09 10:51:24 +01:00
Spectralitree
7010becd32 Add group front percentages (fixing Git history)
Signed-off-by: Ske <voltasalt@gmail.com>
2021-04-06 12:58:50 +02:00
Spectralitree
29561662ab Fix typo in system color 2021-04-06 12:27:39 +02:00
spiral
9d17c130c5
Fix matching canary/ptb Discord links 2021-04-05 02:39:14 +01:00
Spectralitree
2898b3989a Add color to all lists 2021-03-28 19:22:31 +02:00
Spectralitree
8da5c94b1c even more branch fixing 2021-03-28 12:22:19 +02:00
Spectralitree
5a9671559a more... branch fixing 2021-03-28 12:21:06 +02:00
Spectralitree
1e876ce283 more branch fixing 2021-03-28 12:20:01 +02:00
Spectralitree
e7cfd85bd5 I messed up the branches oops 2021-03-28 12:15:21 +02:00
Spectralitree
3603d52e9e Add group and system colors 2021-03-28 12:02:41 +02:00
Spectralitree
1b791fd7f9 Merge branch 'main' of https://github.com/Spectralitree/PluralKit into main 2021-03-27 23:41:24 +01:00
spiral
01ea0d9971
Add 'pk;msg <id|link> delete' 2021-03-21 09:45:26 +00:00
Ske
3196f60093 Fix error on DMing with no permission 2021-03-18 11:38:28 +01:00
Spectralitree
9d80b7b141 Add group front percentages
Also add a title to the system frontpercent embed, and tweak the footer
2021-02-09 23:36:43 +01:00
Ske
ef614d07c3 Do the Big Rename 2021-01-31 16:16:52 +01:00
Ske
80c572f594 Fix various bugs and regressions 2021-01-31 16:02:34 +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
9079f1c59c Port the DM stuff 2020-12-25 13:58:45 +01:00
Ske
a2c8cbb560 Add DM support 2020-12-25 13:19:35 +01:00
Ske
2e0c30eb5d Port some more commands, mostly for embeds 2020-12-25 12:56:46 +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
f6fb8204bb Add embed builder, some more ported classes 2020-12-23 02:19:02 +01:00
Ske
05334f0d25 Converted enough to send the system card 2020-12-22 16:55:13 +01:00
Ske
97f5ab94c1 Update soulscream formatting 2020-12-20 12:16:23 +01:00
Ske
96ba511026 Secret soulscreams, because I'm bored 2020-12-20 11:52:35 +01:00
Ske
a328867e76 Ask for slash command permission in the invite links 2020-12-18 13:47:18 +01:00
Ske
db4e41a232 Convert autoproxy timeout to use seconds 2020-12-08 12:57:17 +01:00
Astrid
77d63c2838
Merge branch 'main' into feat/ap 2020-12-08 12:25:01 +01:00
Astrid
07cd753247
Merge pull request #255 from dev-kittens/feat/group-random
Add random command for groups
2020-12-08 12:20:45 +01:00
Astrid
6e39eb7a96
Merge pull request #258 from dev-kittens/feat/member-group
Group improvements
2020-12-08 12:19:56 +01:00
spiral
61793f5fe2
Actually fix deduplicating arguments (#249) 2020-11-25 17:18:56 -05:00
spiral
fde7e4d3cc
Move group add/remove response text logic into MiscUtils 2020-11-22 23:11:34 -05:00
spiral
115017980e
Add pk;member group 2020-11-22 19:57:01 -05:00
spiral
837b0a457d
Remove duplicates of CheckSystem/CheckOwnMember 2020-11-22 16:15:26 -05:00
spiral
05f1ee92ea
DRY-ify checking URL length for avatars 2020-11-22 15:43:38 -05:00
spiral
e3274d5d26
Move member random to Random.cs, add group random and group member random 2020-11-22 11:58:23 -05:00
spiral
45b87bd132
Move group card embed to EmbedService 2020-11-22 11:57:54 -05:00
spiral
db80b10ec5
Add autoproxy commands in pk;commands 2020-11-22 09:47:19 -05:00
spiral
edb92168ea Add documentation on the website as well 2020-11-22 09:44:07 -05: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
spiral
41247c68a6 Add disabling front/latch autoproxy per-member 2020-11-22 09:42:40 -05:00
spiral
4991d06821
Add aliases for pk;commands 2020-11-19 18:06:50 -05:00
spiral
01cedaab53
Tweak description for switch delete all command 2020-11-19 18:05:53 -05:00
spiral
9babde3c82
Add basic command help functionality to pk;commands 2020-11-19 17:58:57 -05:00
spiral
2858c68a7d
Clean up member list commands and log commands, as well as related docs 2020-11-19 17:10:59 -05:00
Ske
ece03ff85e Escape Markdown on the system group list 2020-11-15 15:42:27 +01:00
Ske
a5aa4923b7 Remove auto-conversion of attached avatars to JPEG 2020-11-15 15:22:22 +01:00
Ske
fdcce05da1 Fix privacy handling in -with-avatar 2020-11-15 14:45:08 +01:00
Astrid
80bdb9795d
Merge pull request #250 from dev-kittens/tweak/avatar-url-flag
Tweak/avatar url flag
2020-11-15 13:15:02 +01:00
Astrid
bf1af84186
Merge pull request #248 from dev-kittens/tweak/group-add-remove
Handle different quantities of members better…
2020-11-15 13:14:45 +01:00
spiral
71d989f948
Add member list flag to show avatar URL 2020-11-14 12:35:22 -05:00
spiral
4586575e88
Handle different quantities of members better 2020-11-14 12:05:30 -05:00
spiral
b522a4c175
Remove duplicated code 2020-11-14 10:51:13 -05:00
spiral
8956777c9a
Fix "clear server avatar" confirmation message 2020-11-08 14:37:38 -05:00