Role Syncing #35

Open
opened 2024-11-01 16:08:21 -04:00 by cswimr · 0 comments
Owner

What cog is your feature request for?

Pterodactyl

With the advent of linking & verification (#32) in Pterodactyl V3, a natural next step is allowing server administrators to sync roles between Discord and the game server being ran.

Describe the solution you'd like

When a role is added or removed from a Discord user, the cog should check if that role is configured for role syncing. If it is, the cog will send a command to the Pterodactyl Panel websocket based on how the role is configured. Role syncing commands would support the normal Command Placeholders (see #34) and would be configured per individual role. Different commands would be ran based on if the role was added or removed.

flowchart TD
    A[Discord Member recieves Moderator role] --> B{Is the Moderator role configured for role syncing?}

    B -- Yes --> C{Is the Discord Member linked to a Minecraft account?}

    C -- Yes --> D[Run the configured add command for the Moderator role]

Describe alternatives you've considered

No response

Screenshots

No response

Additional context

If you have any ideas for how to implement this system, please comment below. This is a tough issue to tackle because of issues like downtime making de-syncs possible.

### What cog is your feature request for? Pterodactyl ### Is your feature request related to a problem? Please describe. With the advent of linking & verification (#32) in Pterodactyl V3, a natural next step is allowing server administrators to sync roles between Discord and the game server being ran. ### Describe the solution you'd like When a role is added or removed from a Discord user, the cog should check if that role is configured for role syncing. If it is, the cog will send a command to the Pterodactyl Panel websocket based on how the role is configured. Role syncing commands would support the normal Command Placeholders (see #34) and would be configured per individual role. Different commands would be ran based on if the role was added or removed. ```mermaid flowchart TD A[Discord Member recieves Moderator role] --> B{Is the Moderator role configured for role syncing?} B -- Yes --> C{Is the Discord Member linked to a Minecraft account?} C -- Yes --> D[Run the configured add command for the Moderator role] ``` ### Describe alternatives you've considered _No response_ ### Screenshots _No response_ ### Additional context If you have any ideas for how to implement this system, please comment below. This is a tough issue to tackle because of issues like downtime making de-syncs possible.
cswimr added this to the Pterodactyl V3 milestone 2024-11-01 16:08:21 -04:00
cswimr added the
enhancement
help wanted
cog
Pterodactyl
labels 2024-11-01 16:08:21 -04:00
cswimr self-assigned this 2024-11-01 16:08:21 -04:00
Sign in to join this conversation.
No description provided.