Commit Graph

635 Commits

Author SHA1 Message Date
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
Ske
0d04be6540 Fix error showing group card with no description 2020-07-28 19:17:01 +02:00
Ske
18cb6785e9 Extract member list parsing to a separate method 2020-07-28 19:17:01 +02:00
Ske
8a28d836c7 Add group member list command 2020-07-28 19:17:00 +02:00
Ske
0f4c40b344 Add group add/remove commands 2020-07-28 19:17:00 +02:00
Ske
6c5cb8cea7 Add group name/description/list commands 2020-07-28 19:17:00 +02:00
Ske
253ae43c7f Add super basic group model/command 2020-07-28 19:17:00 +02:00
Astrid
a0d4ab5809
Merge pull request #202 from acw0/bugfix/dsharpcache
Fix pk;msg errors across shards
2020-07-22 16:33:27 +02:00
kittens
e24c5d095b
Check if we got the same member before asking for confirmation (#201) 2020-07-22 16:27:53 +02:00
kittens
467d058565
Remove "remove" keyword from MatchClear (#199) 2020-07-22 16:26:43 +02:00
acw0
88c28c18c7 Fix pk;msg erroring between shards 2020-07-22 04:07:35 -04:00
acw0
56e4f1c00c Create methods to find guilds and channels in cache 2020-07-22 04:07:18 -04:00
Ske
5d3e159f54 Properly block pinging normally unmentionable roles 2020-07-22 01:06:25 +02:00
kittens
fd0e46f40d
Add -yes flag to CheckYesNo (#198) 2020-07-21 02:10:26 +02:00
Ske
6054080dc7 Upgrade Sentry SDK version (2.0.0-beta7 -> 2.1.4) 2020-07-18 13:08:54 +02:00
Ske
d749876796 Workaround for permission errors when removing reactions 2020-07-18 13:07:16 +02:00
Ske
99d6942ff4 Truncate the echoed command in the not found error 2020-07-18 13:07:16 +02:00
Ske
66f7a664c8 Add special check for pronouns being an empty string
I'm unsure when this happens in practice, but thought I'd guard against it just in case (since it's caused a couple errors already).
2020-07-18 13:07:16 +02:00
kittens
80e6d5b18e
Fix URL handling when the filename contains multiple known extensions (#196) 2020-07-18 12:51:31 +02:00
Ske
e7f95c9ba6 Potential fix for concurrent list modification error 2020-07-14 22:24:13 +02:00
Ske
17826246f2 Fix fuzzy log cleaning matching all messages. Closes #195.
I got the bitshift the wrong way 'round.
2020-07-10 16:47:30 +02:00
Ske
ba48f22ad2 Break proxied links if the sender doesn't have embed permission 2020-07-10 16:35:52 +02:00
Ske
a2930acbad Add more aliases to autoproxy off 2020-07-09 15:11:04 +02:00
Ske
9f523b3c5f Refactor system/member privacy commands 2020-07-08 00:47:16 +02:00
Ske
1449234a84 Migrate more commands to "MatchClear" 2020-07-08 00:00:23 +02:00
Ske
17fbdf553c Allow de-embedding image links with <> 2020-07-07 23:52:54 +02:00
Ske
8d01b580e2 Refactor system/member avatar code 2020-07-07 23:41:51 +02:00
Ske
467b95b1b1 Refactor and simplify member list code 2020-07-07 20:57:22 +02:00
Ske
299f6b2edf Extract member list argument parsing to utility method 2020-07-07 19:51:19 +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
59bbbab621 Handle cases where the channel webhook limit is already hit 2020-07-05 13:38:18 +02:00
Ske
bb7ee130a6 Fix error when proxying all-whitespace message 2020-07-05 13:26:49 +02:00