Advanced anti alt discord verification bot
This template is NOT 100% fool proof. Users can use a VPN, other device, other network to get around this system!
This bot serves as a safeguard against fake accounts, commonly referred to as "alts," joining your Discord server. When a new user joins, they receive a message from the bot containing a link. However, before they can access the link, they are required to solve a captcha to ensure they are not automated bots. This additional step adds an extra layer of security by confirming that the user is a human and not a scripted program attempting to bypass the verification process. Captchas typically involve visual or audio challenges, such as identifying distorted letters or numbers, selecting specific images, or solving simple puzzles.
Upon successfully solving the captcha, users are then directed to a page where their data is retrieved. As part of the verification process, each user is assigned a TrustFactor. This numerical value increases based on various factors that indicate the user is likely a legitimate non-alt account. Conversely, the TrustFactor decreases if there are indications that the user may be an alt account.
One important factor considered is the user's IP address. If the IP address has been previously associated with the verification of another account, the TrustFactor decreases. Conversely, if the IP address is new and not linked to any prior verifications, the user's TrustFactor is increased. By analyzing the TrustFactor against a predefined threshold, access to the server is granted or denied.
The bot is designed to operate across multiple servers and can be customized to meet the specific requirements of each individual server. Once the verification process is complete, the user is promptly notified about the success or failure of their verification attempt. This comprehensive verification system, including the captcha requirement, helps maintain the security and integrity of your Discord community by preventing automated bots and fake accounts from gaining access.
Please follow all the setup steps carefully!
Setup
Press the big green button above
Give your project a name and click "Next"
Link your Discord bot
When done, click "Continue"
Here you have to provide 2 environment variables:
Go to functions/events/autocode/self/deployed.js
and copy the link send in the logs.
After this, go to OAuth2 --> general in your application in the dev portal and add this link as a redirect.
Next, in the dev portal, go to "Bot" and turn on SERVER MEMBERS INTENT
Setting TrustFactor threshold
If you want, you can always change the TrustFactor threshold. This can be done at line line 493 in __main__.js
by changing the value in the if
statement:
if (trustFactor <= 24) {
Use the bot
This bot is a multi-server bot. This means that you can set settings for each individual server.
The bot has a few commands:
/set-fail-punishment
/set-verification-channel
/set-verified-role
/set-fail-punishment
With this command, you can set the punishment the user receives when they fail to verify.
Usage:
/set-fail-punishment [punishment]
punishment is 1 of 3 options:
"Kick"
"Ban"
"No punsihment"
/set-verification-channel
With this command, you can set the verification log channel. Here, verification results will be sent.
Usage:
/set-verification-channel [channel]
channel is the channel you would like to send the logs to. Make sure this is not a category!
### /set-welcome-channel
With this command, you can set the welcome channel. This channel will be used to notify users when their DM's are closed.
#### Usage:
`/set-welcome-channel [channel]`
channel is the channel you would like to send the warings to. Make sure this is not a category!
/set-verified-role
With this command, you can set which role the user recieves when the are verified.
Usage:
/set-verified-role [verified-role]
verified-role is the role the user recieves after verification
FAQ
What happens when a user leaves my server?
When a user leaves your server, their IP will be deleted and their verification status will be reset.
Whish permissions does my bot need?
If the punishment is set to kick or ban, the bot needs kick/ban permission. The bot ALWAYS needs manage roles permission.
The bot does not give the verified role after a successful verification!
Make sure your bot is ABOVE the verified role.
After clicking the verify button, it is saying "invalid redirect URI"!
PLease make sure that you added the link from `deployed.js` in the Discord dev portal
The bot is not doing anything when a user joins!
Make sure that server members intent is enabled.
I used an alt to test this template and it got verified!
As already said, this system is not 100% fool proof. You may have to tweak the settings to fit your needs.
Support
Credits
Thank you to Jacklyn Biggin#0909
for the awesome page desing!
Thank you to charm#6920
for the the awesome Captcha template. This was a great help to set the foundations of the Captcha system.
Versions
Current version: 3.0
View version log here.
Disclaimer:
- This template uses the user IP address for verification purposes. Please be responsible with this sensitive data and only use it for the intended purpose of verifying user identities. Do not share this data with third parties or use it for any other purposes without the explicit consent of the users. Remember that IP addresses can be used to track a user's online activity and reveal their location, so handle this data with care to protect user privacy.
- To install this template, you have to reset your Client Secret. Please re-link your bot with Autocode to use it!
