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 reaction role functionality #105

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

DeveloperAnonymous
Copy link
Member

@DeveloperAnonymous DeveloperAnonymous commented Dec 9, 2024

Fixes #11

Add functionality for role assignment based on reactions.

  • Add addreactionrole and removereactionrole commands in bot/botcommands/member.py to link and unlink reactions to roles.
  • Update bot/management/logging.py to handle role assignment and removal based on reactions.
  • Add utility functions add_reaction_role and remove_reaction_role in bot/util.py for managing reaction roles.
  • Add ReactionRole model in bot/db/models/reaction_role.py to define the structure for reaction roles.
  • Add ReactionRoleService class in bot/db/services/reaction_role_service.py to handle database operations for reaction roles.

For more details, open the Copilot Workspace session.

Fixes #11

Add functionality for role assignment based on reactions.

- Add `addreactionrole` and `removereactionrole` commands in `bot/botcommands/member.py` to link and unlink reactions to roles.
- Update `bot/management/logging.py` to handle role assignment and removal based on reactions.
- Add utility functions `add_reaction_role` and `remove_reaction_role` in `bot/util.py` for managing reaction roles.
- Add `ReactionRole` model in `bot/db/models/reaction_role.py` to define the structure for reaction roles.
- Add `ReactionRoleService` class in `bot/db/services/reaction_role_service.py` to handle database operations for reaction roles.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ADEPT-Informatique/adeptbot/issues/11?shareId=XXXX-XXXX-XXXX-XXXX).
Zuyoutoki
Zuyoutoki previously approved these changes Dec 9, 2024
Copy link

@Zuyoutoki Zuyoutoki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Le pipeline est en erreur, ajouter un ignore pour le linting R0917: Too many positional arguments pis should be good

@DeveloperAnonymous
Copy link
Member Author

La dernière erreur de pylint est causé par un bug qui compte "self" dans les paramètres, est-ce que je serais pas mieux de juste l'ignorer pour l'instant? J'ai fait un bug report dans leur repo

@DeveloperAnonymous DeveloperAnonymous merged commit ac28cd8 into main Dec 10, 2024
3 checks passed
@DeveloperAnonymous DeveloperAnonymous deleted the DeveloperAnonymous/add-reaction-role branch December 10, 2024 02:36
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.

Assignation de rôle par réaction
3 participants