This Discord bot is designed to automatically kick members who are impersonating the server owner in Discord servers. It identifies potential impersonators by comparing their usernames and nicknames with the server owner's information using regular expressions. Made by Sehaj (dxstiny) and Aman (r3sist).
You can use this URL to invite the bot in your server Invite
- Invite the Bot: Use the provided URL to invite the bot to your Discord server. Make sure to give access to every permission the bot requires.
- Set Up Bot Permissions: After inviting the bot, ensure that the bot has a role with sufficient permissions to kick members.
- The bot's role should have higher hierarchy than the roles of potential impersonators, meaning most members. Go to server settings --> roles --> drag the role of the bot "impostersecurity" to the top below admin role. (drag ahove by clicking the left button as shown below)
Impersonator Detection: The bot periodically (every 10 seconds) checks all the guilds (servers) it is a member of for potential owner impersonators. It compares the usernames and nicknames of each member with the server owner's information using regular expressions.
Impersonator Kicking: If a member is identified as an impersonator (not the server owner and matches the impersonation patterns), the bot will kick the impersonator from the server and send a message to a channel named "impersonation-alerts". If the channel doesn't exist, the bot will create it with the necessary permissions.
We are using the Levenshtein distance and the Hamming Distance algorithms to check for the similarities between strings, and profile pictures, respectively.
If you encounter any issues or need support, feel free to contact the developer of the bot or open an issue in the bot's repository.
If you want to improve the bot's functioning, please create a pull request.
This bot is provided as-is without any warranty. The developer of the bot is not responsible for any misuse or damage caused by the bot. Use it responsibly and in accordance with Discord's terms of service.