Commit Graph

95 Commits

Author SHA1 Message Date
Iris System
6b14c50f09 fix(bot): only allow proxying in known-supported channel types
This is so that new channel types added by Discord (that may or may not
support the features we need for proxying to work) don't throw piles of
error codes at users when they try to proxy.
2023-06-28 14:38:50 +12:00
Iris System
a0fa03599b fix(bot): display new Discord usernames correctly 2023-06-28 13:55:21 +12:00
Iris System
e4a2930bf3 fix(bot): correctly reproxy voice messages 2023-05-28 14:46:46 +12:00
Iris System
97666a62df fix(bot): make EmbedLinks permission check work with threads 2023-05-28 14:42:18 +12:00
Iris System
66544b9d40 fix(bot): make proxy/log blacklists work properly with threads
Handling of both blacklists was inconsistent when dealing with threads:
- proxy blacklist of root channel blacklists all threads
- log blacklist of root channel _did not apply_ to threads
- couldn't proxy blacklist threads while leaving root channel proxyable

This change fixes the inconsistencies:
- proxy _and_ log blacklist of root channel affects all threads
- now able to individually proxy/log blacklist threads, with root
  channel unaffected
2023-05-10 13:16:16 +12:00
spiral
eefbaf0c1d feat(bot): correctly proxy voice messages 2023-04-15 12:10:04 -04:00
Jake Fulmine
8187aa05b7
feat(bot): add proxy error config (#544) 2023-03-26 11:42:47 +13:00
Iris System
b2c61e3e8e fix(bot): correctly use thread permissions in reproxy check 2023-02-27 09:18:00 +13:00
Iris System
1c159c37ff fix(bot): wait for database insert before deleting original message
Closes #495

Co-authored-by: spiral <spiral@spiral.sh>
2023-02-05 01:29:41 +13:00
spiral
24db9f28c2
fix(bot): add callback to update message count after proxying
also re-add -with-last-message flag :D
2022-12-10 16:50:22 +00:00
spiral
07845edee6 Merge remote-tracking branch 'origin/main' 2022-11-24 06:32:59 +00:00
spiral
e9673a6704
feat: use redis cache for non-id message lookups 2022-11-24 06:32:55 +00:00
spiral
bf7747ab34
feat: split out messages table from main database 2022-11-23 09:17:19 +00:00
Katrix
4f0236d766
feat(bot): Case insensitive proxy tags matching (#490) 2022-11-23 21:48:24 +13:00
spiral
44efc15b90
fix(bot): do not proxy the initial message in a forum post (#494) 2022-11-03 22:39:06 +00:00
Iris System
81188bc61d fix(bot): stop FixSameName breaking end-of-name emoji 2022-10-13 08:25:16 +13:00
Iris System
9e0ca8d03e fix(bot): use different character in FixSameName 2022-10-13 07:47:55 +13:00
the iris system
fcd1ec486e
fix(bot): filter out non-rich Discord embeds in reproxy (#476) 2022-07-19 20:34:43 -04:00
Iris System
07e86c4cd5 fix(bot): make reproxy change reply embed color 2022-07-05 12:22:35 +00:00
spiral
9848b88d5b
feat(bot): don't query db message context when running commands 2022-06-15 19:28:34 -04:00
spiral
6ed066de29
Merge branch 'main' of ssh://github.com/pluralkit/pluralkit 2022-06-11 00:48:21 -04:00
spiral
1c9a68cb53
chore: lint 2022-06-10 18:49:36 -04:00
Ske
51fb561841 fix: a couple more minor reproxy fixes 2022-06-06 00:59:53 +02:00
Ske
6511c04c6c fix: don't fetch non-thread channels twice 2022-06-05 23:27:54 +02:00
Ske
995fddf929 fix: include guild member in reproxy permission check 2022-06-05 23:27:54 +02:00
Iris System
d500aacd2d feat: make pk;reproxy handle keepproxy correctly 2022-05-27 11:08:32 +12:00
the iris system
ee17fcb11f
feat: add pk;reproxy (#447) 2022-05-08 21:10:07 +00:00
spiral
7afba4ea95
chore: code cleanup (mostly whitespace / remove unused imports) 2022-03-30 04:36:22 -04:00
spiral
982812333b
feat: rewrite database schema for localized autoproxy 2022-03-21 23:43:33 -04:00
spiral
d0e9ad7193
fix: PKMessage.Member can be null 2022-02-11 12:09:58 -05:00
spiral
ddbf0e8691
Revert "feat: remove 2000-character limit for proxied messages"
This reverts commit 7cc2aab1f0.
2022-01-21 18:24:55 -05:00
spiral
a16903037f
fix: don't try to re-send stickers and activity invites 2022-01-14 23:22:12 -05:00
spiral
50a24f03a7
refactor: only pass shard ID to event handlers instead of full shard object 2022-01-14 18:39:03 -05:00
spiral
7cc2aab1f0
feat: remove 2000-character limit for proxied messages 2022-01-14 15:08:39 -05:00
spiral
d3682b94b2
feat: add attachment icon to reply card if referenced message has embeds 2022-01-07 14:21:52 -05:00
spiral
4450ae4214
feat: go through some TODOs 2021-11-26 22:02:58 -05:00
spiral
1918c56937
feat: upgrade to .NET 6, refactor everything 2021-11-26 21:10:56 -05:00
spiral
b8e2ebd470
Merge branch 'feat/webhooks' into main 2021-11-25 17:15:42 -05:00
spiral
1822788e4d
feat(webhooks): add message create event 2021-11-19 11:14:40 -05:00
spiral
e7f36eb31f
feat: async cache
this breaks logging bot permissions to Sentry.

we haven't had a need to check those recently (permissions issues were because of broken cache), so this is fine for now
this should be re-added in the future though
2021-11-17 20:41:02 -05:00
spiral
38cbca1b34
feat: respect guild boost file size limit when re-sending attachments 2021-11-04 14:13:43 -04:00
spiral
c31ea56bc9
fix Discord per-guild avatars in replies
because Discord changed the URL format, for some reason
2021-09-30 15:36:01 -04:00
spiral
92e45a07ff
refactor: add SqlKata for SQL generation, move connection handling into ModelRepository 2021-09-29 21:51:38 -04:00
spiral
c472a7f6df
lint/fixes, add group patch validation 2021-09-22 13:48:34 -04:00
spiral
a09f819924
re-enable FixSameName (with database fix) 2021-09-18 19:14:08 -04: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
ac2671452d
run dotnet format 2021-08-27 11:03:47 -04:00
spiral
4c97a9daf6
hopefully a fix for #384 2021-08-15 00:50:31 -04:00
Ske
4c17ee3d89 Fix proxying in channels without message history + reduce proxy latency 2021-08-08 21:56:24 +02:00