Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reproxying support #25

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Lunaphied
Copy link
Collaborator

This adds a new !reproxy command along with a valid-reproxy-targets option to control whom it may target.

The reference user is always allowed as a target and the command must be prefixed if a command prefix is specified in order to avoid multiple Séance instances competing for a reproxy.

This adds a new feature to Séance where reference user reactions of
emoji can automatically be proxied. Any emoji provided by the
`proxied-emoji` config value will be proxied.

This removes the ability of the reference user to react with those emoji
and is primarily assumed to be used for things like custom heart
reactions that are unique per-user, making their usage easier.

The valid config value is a comma or whitespace separated list of
unicode emoji and Discord custom emoji IDs that should be handled this
way. `*` may also be used to indicate that *all* reactions by the
reference user should be proxied.

This commit also revises the README to more clearly list the available
configuration options.
This adds support for a `!reproxy` command which makes it easy to
"reproxy" messages from a set of provided users and proxy it from
ourselves.

This feature is dangerous, and requires configuring a
`valid-reproxy-targets` list to specify user IDs that can be authors of
the message targeted to be reproxied. The reference user is always on
this list however.

Because of the danger for collision, if a command prefix is set it is
required to be used with the command to avoid multiple Séance instances
competing for a reproxy.
@Lunaphied Lunaphied requested a review from Qyriad July 8, 2024 20:52
@Lunaphied
Copy link
Collaborator Author

This is based on the emoji PR and needs to be handled after that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant