Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Persistant Roles #17

Closed
6 tasks done
HoeenCoder opened this issue Jul 6, 2020 · 2 comments
Closed
6 tasks done

Persistant Roles #17

HoeenCoder opened this issue Jul 6, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@HoeenCoder
Copy link
Member

HoeenCoder commented Jul 6, 2020

This feature would allow moderators to assign a role to a user through Porygon-Z. If they leave through any means (personal choice, kick, ban & unban) and rejoin after after the bot should automatically re-assign these persistent roles.

To Discuss

  • Should the roles assignable be limited? If so how do we set which roles can be persistent. Remember PZ supports multiple servers so we can't hardcode this. (see Persistant Roles #17 (comment) )

To Do

  • Command to make a role persistent. Also tracks (records they have the role in server X) all users currently with the role.
  • Command to reverse this. Also stops tracking the users mentioned above.
  • Database version change to support persistent role tracking.
  • Event listener for when a user joins a server to handle re-assigning roles as needed.
  • Debugging

Other Notes
The required permission should probably be the ability to assign roles to users.

@HoeenCoder HoeenCoder added the enhancement New feature or request label Jul 6, 2020
@HoeenCoder HoeenCoder added this to TODO in Porygon-Z Progress Tracker via automation Jul 6, 2020
@HoeenCoder
Copy link
Member Author

* [x]  Should the roles assignable be limited? If so how do we set which roles can be persistent. Remember PZ supports multiple servers so we can't hardcode this.

The role will be flagged as persistant via a command. Anyone assigned this role (through normal means) will be noted by PZ, and PZ will re-assign it to them if they leave/rejoin. If the role is removed by staff, or the role is made to no longer be sticky, PZ will remove the note so it stops re-assigning the role automatically.

Also updated To Do to reflect the changes.

@HoeenCoder HoeenCoder self-assigned this Aug 7, 2020
@HoeenCoder HoeenCoder moved this from TODO to In Progress in Porygon-Z Progress Tracker Aug 8, 2020
@HoeenCoder
Copy link
Member Author

Closed in 6f1ad32

Porygon-Z Progress Tracker automation moved this from In Progress to Done Aug 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant