suvanl / delet3

delet³ - Discord bot. Currently in alpha.
http://delet3.web.app
MIT License
6 stars 0 forks source link

Dev - verification system #60

Closed suvanl closed 2 years ago

suvanl commented 2 years ago

This PR:

How does it work?

Typical flow with verificationEnabled setting set to true and all validation steps passing:

To ensure this system works as expected, it is recommended that the @everyone role (global permissions) does not have permission to view any channels, by default.

New settings

This system introduces the verificationEnabled and verificationChannel settings. The former determines whether the verification system is switched on/off; the latter determines the channel in which the /verify command can be used.

Database & API changes

Future

In the future, this system will likely be made more robust and advanced, by adding features such as a requirement to complete a captcha in order to pass verification.

Currently, verification info and error notifications are sent to the modLogChannel. In the future, a separate verificationLogChannel setting may be implemented, to ensure separation of concerns and to prevent the mod log doesn't get too cluttered.

This system also ties into another proposed security feature; an anti-raid system (#37), which may be implemented in a future release.