Commit Graph

1167 Commits

Author SHA1 Message Date
spiral
2973325e12
fix: don't try deleting pk;msg -delete message in DMs 2021-09-13 02:21:39 -04:00
spiral
42422f475b
feat: allow deleting *any* message in DMs 2021-09-13 02:13:36 -04:00
spiral
fc11a7b8ee
feat: raise command message retention time to 24 hours 2021-09-13 02:13:19 -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
Ske
84fb49e57c Also normalize interaction tokens in URLs 2021-09-07 00:11:57 +02:00
Ske
9bbe9df16d Clean up a few database pool uses 2021-09-03 22:20:07 +02:00
Ske
13260a4b0e Disable FixSameName for the time being 2021-08-31 01:31:12 +02: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
2ddef25177
refactor: don't use a class for GroupAddRemoveResponse; fix tests 2021-08-27 19:18:59 -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
52efb3c70a
fix: don't check for useless permission when deleting command messages
this allows for deleting command messages in DMs, where the bot does not have manage messages permissions
and just in general in channels where it doesn't have those permissions as well
2021-08-25 12:43:33 -04:00
spiral
87676c2045
fix: show correct command suggestion to edit server tag 2021-08-25 12:33:24 -04:00
spiral
0d583a2a6b
fix: fetch guild settings for server tag in system card 2021-08-25 12:30:42 -04:00
Ske
41427db178 Use a proper user agent when fetching images 2021-08-23 22:53:58 +02:00
spiral
4c97a9daf6
hopefully a fix for #384 2021-08-15 00:50:31 -04:00
Ske
b5ce541440 Avoid spamming failed proxy checks in edit handler logs 2021-08-12 02:52:42 +02:00
spiral
8f15065507
fix: don't check file size for banners 2021-08-08 17:44:30 -04:00
spiral
e058d05224
fix: catch the correct exception in Paginate 2021-08-08 16:10:55 -04:00
Ske
4c17ee3d89 Fix proxying in channels without message history + reduce proxy latency 2021-08-08 21:56:24 +02:00
Ske
1720a28af2 Fix system card lookup in DMs 2021-08-08 15:31:03 +02:00
spiral
a5a39cba0a
fix: correctly check banner image size (don't) 2021-08-06 21:41:27 -04:00
spiral
b8bd53f3c0
fix: correctly check avatar size 2021-08-06 21:41:18 -04: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
c27cbeed01
remove some unused/legacy code 2021-08-04 01:39:41 -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
25f96dd920
Fix Discord merging webhook messages with same username
Closes #33.
2021-08-03 13:44:22 -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
Ske
eb142a81fa Handle null avatar URLs 2021-08-02 12:20:53 +02: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
2bb8c084c9
add missing ) in debug string 2021-08-01 12:32:40 -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
43017c1522
Correctly log errors from gateway event enrichers 2021-07-28 02:09:52 -04:00
spiral
def39b7bc5
fix interactions in DMs 2021-07-28 01:55:06 -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
620fb5be36
Add Vortex log cleanup 2021-07-24 12:02:06 -04:00
Starshine System
74140b5994
Message info embed improvements (#374)
- Fetch the user if there's no member object, so users who left the server don't show up as deleted
- Order roles by position (so potential staff roles show up first and aren't cut off)
2021-07-19 01:02:27 -04:00
spiral
9d344a4ef9
Add confirmation when editing a message from DMs
Closes #373.
2021-07-17 20:39:12 -04:00
Ske
1f2b9f998d Preliminary support for APIv9 and threads 2021-07-15 12:41:19 +02: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
spiral
5d8c16e480
clean up compiler warnings 2021-07-14 19:50:10 -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
afd8983abe
fix the rest of the conditionals 2021-07-08 12:45:59 -04:00
spiral
a8e6a53404
! 2021-07-08 10:57:53 -04:00
spiral
c2b6e0eeed
Add groups to pk;admin 2021-07-08 10:04:05 -04:00
spiral
e620e30c10
Fix channel checks missing GuildNews
The log channel / logclean checks are left as-is; hopefully nobody is
using an announcements channel for their logs?
2021-07-08 09:17:35 -04:00
spiral
a03b5a0c95
Add NuGet lock files
Co-authored-by: Katelyn Gigante <clockwork.singularity@gmail.com>
2021-07-08 09:04:20 -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
2b15815825
listen for text response in YesNoPrompt interactive 2021-07-02 06:35:25 -04:00
Astrid
6455c5fc5f
Merge pull request #364 from zoemartin01/fix/reply-mentions
Fix mentions in replies being cut off
2021-06-28 21:59:43 +02:00
Zoe Martin
131ee8d87c
fix: improved url regex 2021-06-25 15:14:30 +02:00
Zoe Martin
e9da1a80b7
fix: issues with urls being cut in half at the end of replies and "…" unnecessarily being appended at the end 2021-06-25 15:05:25 +02:00
Zoe Martin
d1c6794330
fix: inserting closing angle bracket in reply when not present in original issue 2021-06-25 13:15:25 +02:00
Zoe Martin
2aac97d2a0
fix: extended fix for emotes being cut off in replies to all mentions 2021-06-25 12:54:49 +02:00
Zoe Martin
b156f6a9cb
fix: emotes being cut off in replies 2021-06-25 12:34:44 +02:00
spiral
c727a71161
Add "flat" front history view (percentages add up to 100%) 2021-06-21 11:30:38 -04:00
spiral
bc32943824
fix timespan when removing no-fronters 2021-06-21 10:52:06 -04:00
spiral
8cbb2424d7
Throw "no registered switches" error also with frontpercent 2021-06-16 08:56:52 -04:00
spiral
272a3430a6
move message length check *after* proxy members check 2021-06-14 11:31:14 -04:00
spiral
c75451a572
add temporary info message about increased message character limit 2021-06-12 14:45:21 +00:00
Ske
9e9eaa7450 Replace ping link embed with jump button 2021-06-11 18:17:08 +02:00
Ske
ae82bb4168 Updates to Elastic logging 2021-06-10 14:21:05 +02:00
Ske
ae9ed0f4ee Store stard status in the database 2021-06-10 12:52:47 +02:00
Ske
26dc69e5a4 Add support for Twilight gateway queue 2021-06-09 16:22:10 +02:00
Ske
d61f61fead Add basic support for multi-node clustering 2021-06-09 14:49:12 +02: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
288ec60e02 Remove hardcoded shard count override
Signed-off-by: Ske <voltasalt@gmail.com>
2021-06-08 10:21:58 +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
Astrid
549877c816
Merge pull request #342 from Spectralitree/fixgroupiconprivacy
Fix looking up private group icons
2021-05-30 16:55:28 +02:00
Ske
4bd2d06b0b Add basic interactivity framework 2021-05-30 16:45:45 +02:00
Ske
d7c0592947 Add preliminary support for buttons 2021-05-26 22:27:52 +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
Ske
dbde8c07ad Fix a few more compiler warnings
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-07 10:56:15 +02:00
Ske
dd2c669cd2 Fix some compiler warnings
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-07 10:48:19 +02:00
Spectralitree
b1c7fbd2df
Add color to frontpercent embed (#307)
* Add color to frontpercent embed

* don't pass color as a separate argument

Co-authored-by: Astrid <mail+github@astr.cc>
2021-05-07 10:40:57 +02:00
Astrid
411cbdcd58
Merge pull request #316 from spiralw/feat/checkpatch
API patch improvements
2021-05-07 10:39:22 +02: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
Ske
aa2a234f8d Fix permission error on message edit handler
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 10:29:22 +02:00
Ske
65387bfea4 Loosen regex for normalizing route path logging
Signed-off-by: Ske <voltasalt@gmail.com>
2021-05-03 09:24:18 +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
Astrid
48bd0940d3
Merge pull request #323 from spiralw/patch-2
misc patches
2021-05-02 00:14:17 +02:00
spiral
653c7b22bd
remove random console log 2021-05-01 19:32:37 +01:00
spiral
517abf7ff1
feat: show member color in reply embed 2021-05-01 19:20:00 +01:00
spiral
cf93b8b3cc
fix: don't try matching commands if there is nothing to match 2021-05-01 19:18:04 +01:00
spiral
1e5ba5f985
feat: case-insensitive "text" keyword matching for proxy tags 2021-05-01 19:17:35 +01:00
Ske
478857e8c6 Format guild count in activity properly
Signed-off-by: Ske <voltasalt@gmail.com>
2021-04-29 11:14:04 +02:00
spiral
e6bfc6c374
Fix error on paginate timeout when missing permissions 2021-04-26 03:44:02 +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
b34ed5c4c0
API patch improvements
- add PatchObject.CheckIsValid
- use transaction when creating member, as to not create a member if the
patch is invalid
- return edited system in `PATCH /s` endpoint
2021-04-21 22:57:19 +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
Ske
a2d2036851 Fix nullability for embeds
Signed-off-by: Ske <voltasalt@gmail.com>
2021-04-13 04:11:53 +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
Astrid
34458bd373
Merge pull request #304 from spiralw/fix/link-matching
Fix matching canary/ptb Discord links
2021-04-06 11:32:17 +02:00
spiral
9d17c130c5
Fix matching canary/ptb Discord links 2021-04-05 02:39:14 +01:00
spiral
d6cb2db621
Check for reaction permissions before adding reactions 2021-04-01 21:58:48 +01:00
Spectralitree
c764f922ec Add color field to embeds 2021-03-28 19:22:45 +02: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
66e483be6f
Fix NullReferenceError when HasValue is true but Value is null 2021-03-25 18:02:44 +00:00
Astrid
ffae424a6c
Merge pull request #292 from dev-kittens/fix/edit-replies
Fix handling replies in edited messages
2021-03-22 10:20:11 +01:00
spiral
0acadee803
don't cache the full message 2021-03-22 07:17:10 +00:00
spiral
a7189fab8c
Fix handling replies in edited messages 2021-03-22 07:07:33 +00:00
Ske
3471f7f28c Fix error when proxying duplicate pings 2021-03-21 23:05:56 +01:00
spiral
01ea0d9971
Add 'pk;msg <id|link> delete' 2021-03-21 09:45:26 +00:00
Ske
cddecb7558 Upgrade exception filter 2021-03-18 20:16:28 +01:00
Ske
3196f60093 Fix error on DMing with no permission 2021-03-18 11:38:28 +01:00
Ske
4ee0c13d62 Fix error on @ everyone 2021-03-18 11:34:35 +01:00
Ske
13e3289c26 Add config option for max shard concurrency 2021-03-18 09:47:58 +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
ef9b69a997 Fix some grammar in group member add/remove 2021-02-01 14:26:51 +01:00
Ske
ccd12df996 Fix removing original reaction 2021-01-31 17:56:44 +01:00
Ske
557ec4234e Fix fetching messages we can't access 2021-01-31 17:56:33 +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
8785354a2b Remove D#+ dependency :))))) 2021-01-31 15:04:37 +01:00
Ske
35433b0d82 Convert a few more things 2021-01-31 15:03:11 +01:00
Ske
b48a77df8d Convert periodic stat collector 2021-01-31 14:59:45 +01:00
Ske
227d68a2a4 Convert event destructuring 2021-01-31 14:55:57 +01:00
Ske
5a52abed77 Convert Sentry enrichers 2021-01-31 14:50:10 +01:00
Ske
e06a6ecf85 Remove now-unused DiscordUtils functions 2021-01-31 14:44:37 +01:00
Ske
0c1bb6cc6a Convert message update handler 2021-01-31 14:42:28 +01:00
Ske
d56e878c28 Converted shard and logclean service 2021-01-30 01:07:43 +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
e0cc74a712 Don't attempt to create a reply embed when message fetching fails 2021-01-14 03:22:04 +01:00
spiral
44fa097900
Force PNG image format (remove animations in embeds) 2020-12-28 04:47:14 +00:00
Ske
f18a78b59c Ignore broken pipe and dropped connection exceptions 2020-12-26 13:18:31 +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
a6fbd869be Initial commit, basic proxying working 2020-12-22 13:15:26 +01:00
Ske
c3f6becea4 Fix truncated spoiler tags in replies 2020-12-21 03:16:48 +01:00
Ske
4e5d02e1a4 Reformat replies 2020-12-20 16:58:52 +01:00
Ske
97f5ab94c1 Update soulscream formatting 2020-12-20 12:16:23 +01:00
Ske
e2d76fe809 Fix reply formatting on mobile 2020-12-20 12:16:14 +01:00
Ske
96ba511026 Secret soulscreams, because I'm bored 2020-12-20 11:52:35 +01:00
Ske
df243d4220 Add info embed to proxied replies 2020-12-20 11:38:26 +01:00
Ske
8a04ace5c7 Target .NET 5 2020-12-19 12:01:09 +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
eb9c31778f
Merge pull request #262 from dev-kittens/fix/single-character-name
Allow single character proxy names
2020-12-08 12:21:31 +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
Ske
e1f68197e5 Fix MatchChannel for announcement channels 2020-12-04 02:12:09 +01:00
spiral
277b001050
Clean up name length check method 2020-11-26 00:04:40 -05:00
spiral
ea4d93208e
Allow single character proxy name by adding invisible character 2020-11-26 00:01:19 -05:00
Astrid
a61e2a9815
Merge pull request #260 from dev-kittens/feat/logclean-gisellebot
Add support for GiselleBot log cleanup
2020-11-25 23:21:30 +01:00
spiral
61793f5fe2
Actually fix deduplicating arguments (#249) 2020-11-25 17:18:56 -05:00
spiral
3ef1496383
Fix proxying in announcement channels 2020-11-25 17:13:31 -05:00
spiral
51278532d1
Add support for GiselleBot log cleanup 2020-11-24 00:02:36 -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
Astrid
7f82a3e63a
Merge pull request #251 from dev-kittens/tweak/commands
Command handling tweaks/fixes
2020-11-22 13:58:46 +01:00
Ske
f96f970198 Upgrade D#+ version to latest nightly 2020-11-21 00:02:05 +01: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
c60e6b21a4 Fix API traces for weird endpoints 2020-11-19 11:43:05 +01:00
Ske
feebbf657d Add a short delay when deleting DB messages 2020-11-18 15:01:32 +01:00
Ske
aee91987c2 Lower log level for gateway event spam 2020-11-16 21:59:28 +01:00
Ske
e24b5e3529 Add logging/metrics for error *messages* 2020-11-16 10:07:57 +01:00
Ske
6fb979e74d Add metrics for error/event rates 2020-11-16 09:57:16 +01:00
Ske
0ac180c4e6 Filter Discord 500s out 2020-11-16 09:05:00 +01: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
c0c4871f0b Fix cache error using log channel 2020-11-15 15:07:20 +01:00
Ske
fdcce05da1 Fix privacy handling in -with-avatar 2020-11-15 14:45:08 +01:00
Ske
27c9e54f17 Delete proxied message if the trigger message gets deleted by other means 2020-11-15 14:34:49 +01:00
Ske
8c12b3f037 Update library versions (still on .NET 3.1 though) 2020-11-15 14:15:30 +01:00
Ske
634173e205 Update to D#+ 4.0.0-rc1 2020-11-15 13:53:31 +01:00
Astrid
90b2fcfdd4
Merge pull request #247 from dev-kittens/tweak/group-dn
Add looking up group by display name
2020-11-15 13:15:29 +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
Astrid
1147603520
Merge pull request #245 from dev-kittens/fix/clear-serveravatar
Fix "clear server avatar" confirmation message
2020-11-15 13:13:33 +01:00
Astrid
d844f41059
Merge pull request #244 from dev-kittens/patch-2
[accessibility] add newline between linked accounts in system card
2020-11-15 13:13:23 +01:00
Astrid
e452b32dec
Merge pull request #242 from dev-kittens/fix/dm-delete-command-message
Fix deleting command messages by reaction in DMs
2020-11-15 13:13:15 +01:00
Ske
ce25a56d7a Support multiple 'Clyde's in a webhook name 2020-11-15 13:12:30 +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
71461b3163
Add looking up group by displayname; document this 2020-11-14 10:42:51 -05:00
spiral
8956777c9a
Fix "clear server avatar" confirmation message 2020-11-08 14:37:38 -05:00
Ske
537783dd96 Fix permission check for log channels 2020-11-08 18:52:50 +01:00
spiral
ac679271f2
add newline between linked accounts in system card 2020-11-08 02:00:06 +01:00
spiral
4aeda86d66
Fix deleting command messages by reaction in DMs 2020-11-04 11:30:00 -05:00
Emily
740d9c6fbe
Add time switch was moved to to success message 2020-10-23 14:44:43 +02:00
Ske
108dbb9cc6 Actually set the proper command message retention >.> 2020-10-23 12:20:53 +02:00
Ske
b6dbc82abe Clean up imports 2020-10-23 12:20:44 +02:00
Ske
c69bea86df Fix log channel clear confirm 2020-10-23 12:18:40 +02:00
Ske
81cd5496d5 Refactor command message deletion 2020-10-23 12:18:28 +02:00
Ske
134829b263 Fix build error 2020-10-23 11:17:35 +02:00
Astrid
17c3640fd3
Merge branch 'main' into confirm-clear 2020-10-23 11:14:36 +02:00
Astrid
9976789467
Merge branch 'main' into feature/public-reminder 2020-10-23 11:13:50 +02:00
Astrid
39155af2b8
Merge pull request #225 from dev-kittens/docs-fixes
Improve documentation
2020-10-23 11:11:35 +02:00
Astrid
025fbfe120
Merge pull request #228 from dev-kittens/fix/memberlimits
Fix per-system member limits not being considered in certain conditionals
2020-10-23 11:11:11 +02:00
Astrid
8f56a1cc32
Merge pull request #233 from dev-kittens/feature/delete-bot-responses
Allow deleting bot responses with  reaction
2020-10-23 11:09:41 +02:00
Astrid
f9db2558dd
Merge pull request #230 from dev-kittens/fix/log-channel-clear
Fix log channel clear matching
2020-10-23 11:07:38 +02:00
Astrid
d1c22b66df
Merge pull request #231 from dev-kittens/tweak/send-export-attachment-url
Send raw attachment URL after sending export file for easier copying on mobile
2020-10-23 11:07:22 +02:00
dev-kittens
86ed2b1add
Fix -yes flag matching on linking other accounts 2020-10-20 06:33:35 -05:00
spiral
96f363f1b1
Tweak warning message 2020-10-19 04:05:54 -05:00
dev-kittens
a5f7bacb3e
Add member is public reminder message on member creation (if system has private members) 2020-10-19 03:50:51 -05:00
dev-kittens
56bb5e975f
Add handling command reactions
and, uhh, rename invoker_id to author_id
2020-10-18 00:59:36 -05:00
dev-kittens
05cc30279a
- Add storing bot response messages in postgres
- Add scheduled task to clean up said store
2020-10-18 00:18:52 -05:00
dev-kittens
80e9e4f14b
Send raw attachment URL after sending export file 2020-10-17 16:56:48 -05:00
dev-kittens
f50df670d7
Fix log channel clear matching 2020-10-17 16:43:59 -05:00
Ske
9282d5e9fb Add some more resiliency to DB errors 2020-10-14 23:35:10 +02:00
dev-kittens
d80d3c5f04 Fix limit message on creating new members 2020-10-09 14:23:31 +00:00
Ske
1fda6ec919 Add per-system member/group limit override 2020-10-09 12:18:29 +02:00
dev-kittens
dfacbc51ab Confirm before clearing (most) entity properties 2020-10-04 08:53:07 +00:00
dev-kittens
429cc9e747 Fix member creation docs link 2020-10-04 07:44:21 +00:00
dev-kittens
d6f7aafd2a command tree tweaks 2020-10-04 07:26:42 +00:00
Ske
1e8470e77f Potential quick fix for... something 2020-09-25 23:28:06 +02:00
Ske
969065724d Fix Tupperbox importing (again) 2020-09-20 23:32:57 +02:00
Ske
4f6c98db48 (Add the actual service file, shh) 2020-09-20 22:36:04 +02:00
Ske
5269f994cf Add new internal error message + send rate limiting 2020-09-20 22:35:05 +02:00
Ske
eab1cb1645 Ignore self-messages 2020-09-20 21:49:52 +02:00
Ske
6f8e15178f Fix image proxy URL extensions
Media proxy doesn't support format conversion by changing extension, needs a separate query parameter instead
2020-09-16 22:47:40 +02:00
Ske
509c0bf73f Fix Tupperbox importing by ignoring extra fields 2020-09-16 20:47:01 +02:00
Astrid
ea4edfc5f2
Merge pull request #218 from dev-kittens/patch-2
Fix webp avatar errors
2020-09-13 00:11:42 +02:00
kittens
42b70cde9a
Add -all flag on system and group cards (#216)
* Show group count on stats card

* Add -all flag on system and group cards
Shows full count, including private members.

* fix stuff broken by merging conflicts
2020-09-13 00:10:37 +02:00
Ske
5ba89d32fc Fix avatar URLs with encoded spaces 2020-09-12 19:43:54 +02:00
Ske
7b59040da2 Truncate roles list if it gets too long 2020-09-12 19:30:03 +02:00
Ske
47bdc34142 Optimize DB access for LogClean 2020-09-09 22:20:52 +02:00
dev-kittens
e79e7278ab Fix webp image errors 2020-09-03 06:46:23 -04:00
Ske
a1da3e1386 Sort groups on the member card alphabetically 2020-08-30 17:03:28 +02:00
Ske
20addea986 Ignore reactions on channels we don't have cached 2020-08-30 15:53:03 +02:00
Ske
c7612df37e Major database refactor (again) 2020-08-29 13:46:27 +02:00
Ske
3996cd48c7 Ignore deleted channels when printing blacklist 2020-08-28 23:37:27 +02:00
Ske
8477cfaf0e Actually include the Sentry ID in the logs 2020-08-28 18:48:57 +02:00
Ske
2005ce3296 Log response headers 2020-08-27 22:33:50 +02:00
Ske
35f0c342b6 Also log response bodies for error 500s 2020-08-27 21:54:33 +02:00
Ske
98afbb5ea8 Change example for group rename to use rename alias 2020-08-27 21:28:54 +02:00
Ske
9955dc29f9 Add Elastic-bound logging of (almost) all database update events 2020-08-27 21:28:36 +02:00
Ske
8d27148bdf More updates to event infrastructure 2020-08-27 18:20:20 +02:00
Ske
e27826955e Properly tag request logs in metrics 2020-08-27 16:26:37 +02:00
Ske
e556cc71fa Add persistent event ID to log context 2020-08-27 14:40:49 +02:00
Ske
ca4ffdb803 Slightly change HTTP log format 2020-08-27 14:38:11 +02:00
Ske
f2c18dff41 Add preliminary support for logging outgoing HTTP requests 2020-08-27 00:07:00 +02:00
Ske
2e6b1826fc Add experimental Elasticsearch logging output 2020-08-26 22:29:24 +02:00
Ske
84a91b3f75 Add "groups" to system privacy parse error 2020-08-26 22:01:52 +02:00
Ske
929b34e555 Add 'g' as alias for system groups 2020-08-26 22:01:42 +02:00
Ske
de010fde76 Add DM permission "check" when sending system token 2020-08-26 00:17:05 +02:00
Ske
147e1fdc1a Potentially fix NRE in ProxyService 2020-08-25 23:26:41 +02:00
Ske
203dbc65a1 Replace most "code-escaped" literals with properly-escaping helpers 2020-08-25 22:44:52 +02:00
Ske
2794919728 Use "smart references" for member commands 2020-08-25 22:33:04 +02:00
Ske
d21eb7b477 Add 'nick' to group display name alias 2020-08-25 22:25:20 +02:00
Ske
302c32372e Update version of DSharpPlus 2020-08-25 20:36:55 +02:00
Ske
0d04725a19 Include full debug symbols when building in Release mode 2020-08-25 20:36:38 +02:00
Ske
2206185d55 Add command prefix configuration 2020-08-25 19:32:19 +02:00
Ske
1e0ce31ffe Order groups alphabetically by name 2020-08-25 18:43:52 +02:00
Ske
10d6968734 Add metrics for group count 2020-08-25 18:26:52 +02:00
kittens
437808afce
Add flags to switch delete all 2020-08-21 15:50:34 -04:00
Ske
8688f4d0bf Merge branch 'main' into feature/groups 2020-08-21 18:31:49 +02:00
Ske
10c01da39b Couple more slight tweaks :) 2020-08-21 17:08:49 +02:00
Ske
1bb5d203df Various additional tweaks/additions to groups 2020-08-20 21:43:17 +02:00
Ske
9e251352c7 Various fixes and improvements 2020-08-16 12:10:54 +02:00
acw0
dd3b87cb23 use guild ID instead of channel ID in GetChannel 2020-08-13 04:27:44 -04:00
Ske
bed43379cf Add additional (debug) logging to (proxy) logger 2020-08-12 21:52:42 +02:00
Astrid
801db3c274
Merge pull request #211 from dev-kittens/random-stuff
Add -all flag to pk;random
2020-08-12 17:15:55 +02:00
kittens
2d9111727d
Use unicode escape sequence for less confusion 2020-08-12 11:05:11 -04:00
kittens
26418871ad
Fix doubleBacktick replacing 2020-08-12 10:51:59 -04:00
Ske
0de284cd36 Bounds check system name in new system command 2020-08-11 22:06:02 +02:00
Ske
d702d8c9b6 Add group icon command 2020-08-08 15:09:42 +02:00
Ske
cedb050b8a Add group delete command 2020-08-08 14:56:34 +02:00
acw0
5bc31cbf3e Fix error message 2020-08-05 19:56:40 -04:00
Ske
7ab5e66d7b Show new color in the member color change embed 2020-08-05 20:20:27 +02:00
acw0
df7fdce144 Add sorting member list randomly 2020-08-04 19:28:29 -04:00
acw0
f6d2f4b620 Add -all flag in random command 2020-08-04 18:43:17 -04:00
ent3r
687eaaa928 Fix formatting
Removed bold on a colon
2020-08-03 19:00:27 +02:00
acw0
d9c644ec0e Change "channel not found" error messages to be more ambiguous; also, put them in Errors instead of inline 2020-08-03 19:00:17 +02:00
acw0
2f8f819e22 Add "n" as an alias to "new" for creating a system 2020-07-29 11:30:46 +02:00
acw0
3c5aec1df8 Show bot status as "Idle" when restarting 2020-07-29 11:30:46 +02:00
Ske
fb236726aa Consolidate conditional 2020-07-28 19:52:57 +02:00
Ske
62cdb8a9b8 Check for avatar whitespace instead of null.
This may be relevant for #206, although unsure if this is actually a fix.
2020-07-28 19:35:34 +02:00
acw0
47fcfeca0f Consolidate conditionals 2020-07-28 19:30:03 +02:00
acw0
1138c1a2a9 Clean up getting guild/member 2020-07-28 19:30:03 +02:00
acw0
bf07294f5f Change error to be more ambiguous 2020-07-28 19:30:03 +02:00
acw0
687dd23234 Fix missing ID error 2020-07-28 19:30:03 +02:00
acw0
c20c4dab42 use Shard.GetGuild instead of Rest.GetGuild 2020-07-28 19:30:03 +02:00
Ske
f504e16543 Restructure group created info 2020-07-28 19:17:01 +02:00
Ske
5e28e0aba1 Add group privacy command/structures 2020-07-28 19:17:01 +02:00
Ske
47d5ad0004 Enforce group count limit on creation 2020-07-28 19:17:01 +02:00
Ske
f47d366c8d Show member groups on member card 2020-07-28 19:17:01 +02:00
Ske
ec9ee5c794 Show member count on group card 2020-07-28 19:17:01 +02:00