-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add reaction role functionality #105
Conversation
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).
There was a problem hiding this 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
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 |
Quality Gate passedIssues Measures |
Fixes #11
Add functionality for role assignment based on reactions.
addreactionrole
andremovereactionrole
commands inbot/botcommands/member.py
to link and unlink reactions to roles.bot/management/logging.py
to handle role assignment and removal based on reactions.add_reaction_role
andremove_reaction_role
inbot/util.py
for managing reaction roles.ReactionRole
model inbot/db/models/reaction_role.py
to define the structure for reaction roles.ReactionRoleService
class inbot/db/services/reaction_role_service.py
to handle database operations for reaction roles.For more details, open the Copilot Workspace session.