Commit Graph
47 Commits
Author SHA1 Message Date
Iris System 4d65237ee1 chore: remove old web-proxy code
This is no longer used in our infra, and probably should never have
been in this repo anyway

Closes: PluralKit/PluralKit#511
2023-06-28 18:45:11 +12:00
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 71c61e93b5 chore: add golang to editorconfig 2023-05-26 11:31:48 +12:00
Iris SystemandGitHub 83af1f04a7 feat(bot): add support for Discord message context commands (#513) 2023-05-16 03:17:34 +12:00
Iris System c69ab99519 feat(ci): build docker images on all branches 2023-05-12 15:37:26 +12:00
Iris System 1b95740c86 fix(bot): truncate system fronter list in embed creation 2023-05-12 15:37:26 +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
Iris System 24f0fcd563 fix(bot): allow proxying in stage text channels (fixes #550) 2023-05-07 22:15:29 +12:00
Iris Systemandspiral 2bffee5450 fix(bot): fix import/export with incorrect webhook_avatar_url
Incorrect use of `member.WebhookAvatarFor` in member JSON creation
meant that exports of members without a webhook avatar set had the
normal avatar URL present in both fields.

This also adds a check to the importer to ignore the value of the
webhook_avatar_url field if it is the same as the avatar_url field.

Fixes: ccb89f50e9 (feat(bot): allow separate member avatars for proxied messages)
Co-authored-by: spiral <spiral@spiral.sh>
2023-03-21 23:35:49 +13:00
the iris systemandGitHub ccb89f50e9 feat(bot): allow separate member avatars for proxied messages (#523)
This allows for using one avatar for the member card, and a different
avatar for proxied messages - so that users can set the main avatar to
a "full" version of their avatar, and the "proxy" avatar to a cropped
version.
2023-03-02 06:11:35 +13:00
Iris System 7fffb7f65a fix(web-proxy): move UA check into API block, small clean up 2023-03-01 06:11:08 +13:00
Iris System 5e60dec6ec fix(api, docs): send HTTP 400 on empty User-Agent, update docs 2023-02-27 09:56:00 +13:00
Iris System b2c61e3e8e fix(bot): correctly use thread permissions in reproxy check 2023-02-27 09:18:00 +13:00
Iris System 1b3fa07c67 feat(bot): update help message footer with bot icon credit 2023-02-25 08:26:08 +13:00
Iris System 51ceb36129 fix(bot): use newly-exposed message ID in Carl-bot logclean 2023-02-08 03:05:08 +13:00
Iris Systemandspiral 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
Iris System 3fd16182f0 fix(bot): allow end-of-line space on otherwise empty blockquote line
Fixes #507
2023-02-05 01:20:52 +13:00
Iris System 683b616a1b fix(bot): make pk;import handle <> wrapped URLs 2023-01-09 04:32:41 +13:00
Iris System 10287d0146 chore: update lockfiles (since dependabot didn't) 2023-01-09 04:31:11 +13:00
Iris System 631c6027ab feat(bot): allow timestamps in "military time" (HHmm, no colon) 2023-01-08 03:07:22 +13:00
Iris System 25c55df3b3 feat(bot): allow clearing embeds from proxied messages 2023-01-08 03:07:22 +13:00
Iris System e65c2de542 feat(bot): add admin command for account recovery 2022-11-23 23:54:21 +13:00
Iris System 0d27e669c8 feat(bot): add admin commands for hid rerolls 2022-11-23 23:53:40 +13:00
Iris System b2bfe93013 chore: lint 2022-11-23 03:13:33 +13:00
Iris System 9153c26425 feat(bot): add -wid flag to pk;s fh to show member IDs 2022-11-22 23:02:38 +13:00
Iris System 3db818741a feat(bot): add -nospace (-ns) flag to pk;edit append/prepend mode
Also adds flag aliases `-a` (`-append`) and `-p` (prepend)
2022-11-22 23:02:38 +13:00
Iris System 2fca75782c feat(bot): display currently-latched member in pk;ap embed 2022-11-22 23:02:37 +13: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
Iris System e23b1048c9 fix(bot): use LastMessageCache for reproxy latest message check
(thanks spiral for catching this lmao)
2022-08-27 18:58:54 +12:00
Iris System d9fe78bdf2 feat(bot): always allow reproxying latest message in channel 2022-08-27 17:02:50 +12:00
Iris System f54cfbdff3 fix(bot): show correct subjects in pk;m <id> privacy embed 2022-08-27 17:01:29 +12:00
Iris System 1ea37696e3 fix(bot): check bot perms for UseExternalEmojis instead of @/everyone 2022-08-05 09:42:01 +12:00
the iris systemandGitHub 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
Iris System 52127d9255 chore: update nuget Grpc.Tools to 2.47.0
The version previously used (2.37.0) is completely broken on
aarch64 Linux, so building the bot just didn't work there.
2022-07-05 11:15:30 +00:00
the iris systemandGitHub 69ed7e4925 fix(docs): slightly clarify system command targeting (#462) 2022-06-12 05:10:38 +00:00
Iris System d500aacd2d feat: make pk;reproxy handle keepproxy correctly 2022-05-27 11:08:32 +12:00
Iris Systemandspiral 4c8e5d9aec feat: add aliases: pk;ap l (latch), pk;ap f (front) 2022-05-08 17:12:09 -04:00
Iris Systemandspiral f25b967a36 feat: add aliases: pk;h (help) and pk;m <member> kp (keepproxy) 2022-05-08 17:12:09 -04:00
Iris Systemandspiral a66d459756 feat: add "rn" as alias for "rename" for systems+members+groups 2022-05-08 17:12:09 -04:00
Iris Systemandspiral b8fda734e2 feat: add more systemtag-related command aliases
- `pk;s t` for tag
- `pk;s st` for servertag (taken from a Notion suggestion)
2022-05-08 17:12:09 -04:00
the iris systemandGitHub ee17fcb11f feat: add pk;reproxy (#447) 2022-05-08 21:10:07 +00:00
Iris System 1008032171 feat: auto-export system on deletion
Refuses to delete system unless a DM can be sent with the export file,
use `-no-export` (`-ne`) to override
2022-05-08 09:16:20 +12:00