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

feat: Lock channel behind agreement #40

Open
oSumAtrIX opened this issue Mar 4, 2024 · 0 comments
Open

feat: Lock channel behind agreement #40

oSumAtrIX opened this issue Mar 4, 2024 · 0 comments
Assignees
Labels
feature-request Requesting a new feature that's not implemented yet

Comments

@oSumAtrIX
Copy link
Member

oSumAtrIX commented Mar 4, 2024

About

Whenever ReVanced has a big change, the chat gets spammed with users asking for support for example.
In such times it would be good to lock the channel in a way that first requires the user to agree not to ask for support in there for example before they can type there

It could work like this:

  1. Use the Discord bot command /agree to: "Not ask for support" to: "Read help" with: "I agree or else I get muted"`
  2. The bot creates a new role for example "Agreed" and only allows that role to read/write that channel
  3. The bot clones the channel in which the command was sent, and hides it from the "Agreed" role
  4. The bot sends a predefined embed and adds the agreements as fields to the embed
  5. The bot adds the with string to the embed and listens for it in that channel
  6. If the user typed it correctly, they receive the "Agreed" role, if not, they receive a warning that they need to agree before they can type in that channel

If we want to unlock the channel, the bot can listen to delete channel events. If the new channel is deleted, the bot deletes the "Agreed" role and adjusts the channel role overrides back if necessary

If we want to lock other channels behind an agreement, "/agree add" could be used which just updates the roles of the channel

@oSumAtrIX oSumAtrIX added the feature-request Requesting a new feature that's not implemented yet label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Requesting a new feature that's not implemented yet
Projects
None yet
Development

No branches or pull requests

2 participants