Commit Graph
100 Commits
Author SHA1 Message Date
Ske 23cf06df4c Port some things, still does not compile 2020-04-17 23:10:01 +02:00
Ske f56c3e819f Replace Discord.Net with DSharpPlus
This commit will not compile.
2020-04-17 18:38:12 +02:00
Ske 02e2c9314b Update webhook rate limit code 2020-04-16 22:30:13 +02:00
Ske ab8382dffe Load proper config file for non-Docker API 2020-04-16 22:03:23 +02:00
Ske 4fe40b220e Optimize latch-mode autoproxy query 2020-04-16 18:23:56 +02:00
Ske 05595329b5 Collect metrics about webhook rate limit cache size 2020-04-16 18:20:53 +02:00
Ske 93bf7c6543 Add periodic garbage collection of webhook rate limit cache 2020-04-16 18:18:08 +02:00
Ske 93e53be7db Bump member count limit for the time being 2020-04-09 17:25:01 +02:00
Ske 4701f4b56c Add proper logging of startup errors 2020-03-27 00:02:56 +01:00
Ske fa70df8f98 Add proper webhook rate limit support 2020-03-27 00:01:42 +01:00
Ske 12d29eba44 Fix wrong message in privacy lookup 2020-03-09 11:00:28 +01:00
Ske 0eb2e8be6f Skip messages before current user ID is established 2020-03-08 11:10:05 +01:00
Ske 20789411f6 Cancel early when rate limited 2020-03-08 11:06:08 +01:00
Ske f8d0fb2f4b Properly ignore invalid server-side data when executing webhooks 2020-03-08 10:55:47 +01:00
Ske 0f8786143f Ignore database shutting down errors 2020-03-08 10:55:33 +01:00
Ske 8b55e1364d Properly sanitize raw member description output 2020-03-08 10:34:47 +01:00
Ske a1d91784a0 Fix importing older export files 2020-03-07 17:30:22 +01:00
Ske 329a337518 Merge branch 'master' of github.com:xSke/PluralKit 2020-03-07 17:23:22 +01:00
Ske c6e813853a Remove "a" keyword for pk;find 2020-03-05 19:08:32 +01:00
Ske 884d6e1925 Add pk;find to the command list 2020-03-05 19:08:11 +01:00
AstridandGitHub 3ba6bc3224 Fix initializing postgres on first startup (#153) 2020-03-05 16:51:35 +01:00
Ske ab8b5e3786 Fix setting proxies starting with text 2020-03-05 00:07:42 +01:00
Ske c5a91c4575 Fix Tupperbox importing birthdays 2020-03-04 19:49:02 +01:00
Ske 35b0659d05 Don't ping by reaction if sender doesn't have permissions 2020-03-04 18:39:51 +01:00
Ske e49f2850c6 Add support for Vanessa log cleaning 2020-03-04 18:32:14 +01:00
Ske 628ae6beb7 Update command list documentation 2020-03-04 18:28:13 +01:00
Ske 373423e6c5 Restructure the rest of the commands 2020-03-04 18:13:36 +01:00
Ske 1169669cf1 Restructure member description command 2020-02-28 00:23:54 +01:00
Ske bcc9659117 Add "clear" subcommand in addition to flags 2020-02-27 18:07:05 +01:00
Ske f03b4683f7 Restructure system proxy command 2020-02-27 18:06:13 +01:00
Ske f291714cff Restructure system description command 2020-02-27 17:50:52 +01:00
Ske 823b101b63 Restructure system timezone command 2020-02-27 17:50:52 +01:00
Ske 4df3be8c3a Restructure system tag command 2020-02-27 17:50:52 +01:00
Ske ee3ac44664 Properly handle 5xx errors from webhook calls 2020-02-26 19:47:30 +01:00
Ske 45c5e5ed42 Normalize colors to lowercase hex 2020-02-25 16:37:52 +01:00
Ske a95d12639d Handle send message/embed links permission erorrs gracefully 2020-02-24 09:57:16 +01:00
Ske 9d4993b121 Fix Tupperbox import errors 2020-02-23 12:45:26 +01:00
Ske f97c18aed0 Ignore flags when parsing system tags 2020-02-23 00:15:53 +01:00
Ske 26e7ef3c23 Add further bounds/sanity checking to import files 2020-02-22 20:11:37 +01:00
Ske eefbf0630e Fix fuzzy log clean match error with multiple messages 2020-02-22 20:08:20 +01:00
Ske 75947301f1 Properly skip flag parsing when handling proxy tags 2020-02-22 15:21:48 +01:00
Ske 8d3be79d33 Don't attempt to send log messages if the bot doesn't have permissions 2020-02-22 01:54:10 +01:00
Ske 493f7b12e5 Skip flag parsing when handling proxy tags 2020-02-20 23:53:05 +01:00
Ske de141d629b Fix newline rendering in embeds on iOS 2020-02-20 22:57:37 +01:00
Ske 456fe8f7af Ignore weirdly formatted server errors too 2020-02-19 01:00:23 +01:00
Ske 2354e7fd74 Ignore timeout errors 2020-02-18 21:56:15 +01:00
Ske 55671b45d6 Add support for UnbelievaBoat 2020-02-15 14:17:25 +01:00
Ske ccf81b0826 Add support for Pancake 2020-02-15 14:17:25 +01:00
Ske e9cc8ed424 Add logger bot cleanup support 2020-02-15 14:17:25 +01:00
Ske 2268a33600 Correct word in member find title 2020-02-15 14:14:27 +01:00
Ske e70236b9c0 Send member card on proxy query 2020-02-15 00:12:46 +01:00
Ske d596cbc4e8 Clean up privacy handling in API 2020-02-13 23:11:21 +01:00
Ske bef3f5c79a Merge branch 'api-privacy' of https://github.com/greysdawn/PluralKit into greysdawn-api-privacy 2020-02-13 22:55:10 +01:00
Ske 268eabb047 Properly target system find 2020-02-13 20:25:00 +01:00
Ske a76d7a6777 Add member find/search command 2020-02-13 16:49:45 +01:00
Ske 883796de16 Refactor system list command 2020-02-13 16:35:50 +01:00
Ske 48342a2890 Fix spurious empty-string-description errors 2020-02-12 23:18:31 +01:00
Ske 7a1aaf6dbd Add basic flag parsing support 2020-02-12 21:40:02 +01:00
Ske 2148e29f54 Log updates to guild settings 2020-02-12 19:07:40 +01:00
Ske dc10a8411a Disable autoproxy retriggering on edit 2020-02-12 17:44:24 +01:00
Ske d0d3579b17 Add server-specific member avatars 2020-02-12 17:42:12 +01:00
Ske 6d5004bf54 Large refactor and project restructuring 2020-02-12 15:16:19 +01:00
Ske c10e197c39 Update README 2020-02-12 14:39:00 +01:00
Ske b68e221fc6 Track current shard in Sentry reports 2020-02-12 14:37:11 +01:00
Ske 1d3acb2392 Fix error when trying to DM a user with DMs disabled 2020-02-12 14:22:15 +01:00
Ske 1386e6743b Proxy edited messages if the message is the last one in the channel, and the edit introduces proxy tags where there were none previously 2020-02-12 14:21:48 +01:00
Ske 30ed293dc6 Change no-year sentinel value to 0004
This allows setting the date "Feb 29" with no year, since the year 0004 is a leap year in the Gregorian calendar, while the year 0001 isn't.
2020-02-09 22:36:02 +01:00
Ske 9394b14a38 Fix link in system created message 2020-02-09 22:35:16 +01:00
Ske 466aea439e Add getting started steps back 2020-02-09 15:30:19 +01:00
Ske 9d0af7f22a Fix image proxying with empty messages 2020-02-09 15:27:52 +01:00
Ske f2bbf8a51d Tweaks to the new documentation 2020-02-09 15:08:37 +01:00
Ske e6ba9ffb51 Add space to short list footer 2020-02-09 14:26:09 +01:00
Ske f618bc2403 Fix pk;msg with message link 2020-02-07 22:24:03 +01:00
Ske 4c1a03bb00 Special case "private" and "public" as setters rather than togglers 2020-02-07 22:20:40 +01:00
Ske 594bcc5b7b Replace error with warning on legacy proxy command 2020-02-05 23:44:03 +01:00
Ske 3ce1078dc6 Add different text for systems with no members 2020-02-05 23:43:30 +01:00
Ske 565d166c68 Add more aliases to proxy add/remove 2020-02-04 18:16:45 +01:00
Ske f27e864731 Fix autoproxying someone else's bare tags 2020-02-03 16:10:43 +01:00
Ske 951b089c97 Handle imports from other systems/instances with different HIDs 2020-02-03 15:16:57 +01:00
Ske 5334975ab7 PROPERLY handle example proxy "text" 2020-02-03 15:11:35 +01:00
Ske 7bdc3020b0 Handle malformed proxy tag importing correctly 2020-02-03 15:05:05 +01:00
Ske 026932049a Properly invalidate account caches when unlinking 2020-02-03 15:04:53 +01:00
Ske de427d8bfe Properly invalidate account caches when deleting systems 2020-02-03 14:47:29 +01:00
Ske ab39ebc512 Document Content-Type requirement for API 2020-02-03 14:47:08 +01:00
Ske a7e071eb24 Fix permission check for reactions 2020-02-03 13:41:16 +01:00
Ske f172123190 Fix setting proxy tags starting with "text" 2020-02-01 23:08:33 +01:00
Ske fde03538e0 Fix API token handling 2020-02-01 22:17:13 +01:00
Ske 6863da9462 Disable Discord member caching entirely 2020-02-01 15:00:36 +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
Ske a60be64551 Ensure metrics instance is a singleton 2020-02-01 12:33:43 +01:00
Ske 2abb9fc9f9 Fix API schema tables 2020-01-31 12:56:21 +01:00
Ske a5f0d7ac13 Handle proxy tag length overflow in short member list 2020-01-31 11:43:53 +01:00
Ske 5caf040bbc Properly handle setting empty proxy tags 2020-01-30 10:20:47 +01:00
Ske 8e1b3dfa98 Add privacy section to user guide 2020-01-30 09:52:28 +01:00
Ske 3b2167e16f Shuffle dependencies around 2020-01-26 01:30:39 +01:00
Ske 1ea0526ef8 Migrate DI container to Autofac 2020-01-26 01:27:45 +01:00
Ske 4311cb3ad1 Fix unlinking deleted accounts 2020-01-25 18:08:35 +01:00
Ske 3ba6a115f0 Correct autoproxy escape character 2020-01-25 17:40:41 +01:00
Ske b371c2f34d Fix Npgsql deprecation error 2020-01-25 16:46:34 +01:00