Issue Title: Remove Unverified Role from Discord Server Members
Issue Description
Currently, unverified users in the Discord server are assigned an "Unverified" role. We need to implement a feature that automatically removes this role from users who have completed the verification process on our website after running the /verify command in Discord. Additionally, we need to integrate this feature into a script that can be executed by a superuser to remove the unverified role from users who were verified before this feature was implemented.
Steps to Resolve
Utilize the existing backend service, services/discordservice.js, which already contains the role removal functionality.
Implement the following logic in the script and verification process:
When a user successfully completes the verification process on our website after running the /verify command in Discord:
Retrieve the verified user's Discord ID and store it.
Pass the discordUnverifiedRoleId from the configuration file as an argument to the existing role removal service in services/discordservice.js to remove the "Unverified" role from the user.
Integrate this logic within the appropriate sections of the script and verification process to ensure seamless removal of the unverified role.
Test the feature extensively to verify its proper functionality and ensure it doesn't affect other parts of the system.
Document the implementation steps and update the project's documentation accordingly.
Update the README file with any necessary instructions for superusers to run the script and execute the role removal process for pre-existing verified users.
Additional Information
The existing role removal service can be found in the backend at services/discordservice.js.
The discordUnverifiedRoleId is already available in the configuration file and should be passed as an argument to the role removal service.
Acceptance Criteria
The "Unverified" role should be automatically removed from users who successfully complete the verification process on our website after running the /verify command in Discord.
The role removal feature should be integrated into a script that can be executed by a superuser to remove the unverified role from users who were verified before this feature was implemented.
The role removal service in services/discordservice.js should be consumed to remove the "Unverified" role.
The discordUnverifiedRoleId from the configuration file should be passed as an argument to the role removal service.
The script and verification process should be thoroughly tested to ensure proper functionality.
Documentation and the README file should be updated accordingly.
Issue Title: Remove Unverified Role from Discord Server Members
Issue Description
Currently, unverified users in the Discord server are assigned an "Unverified" role. We need to implement a feature that automatically removes this role from users who have completed the verification process on our website after running the
/verify
command in Discord. Additionally, we need to integrate this feature into a script that can be executed by a superuser to remove the unverified role from users who were verified before this feature was implemented.Steps to Resolve
services/discordservice.js
, which already contains the role removal functionality./verify
command in Discord:discordUnverifiedRoleId
from the configuration file as an argument to the existing role removal service inservices/discordservice.js
to remove the "Unverified" role from the user.Additional Information
services/discordservice.js
.discordUnverifiedRoleId
is already available in the configuration file and should be passed as an argument to the role removal service.Acceptance Criteria
/verify
command in Discord.services/discordservice.js
should be consumed to remove the "Unverified" role.discordUnverifiedRoleId
from the configuration file should be passed as an argument to the role removal service.Related Files
services/discordservice.js
discordUnverifiedRoleId
)