This is a Discord bot that checks if a password has been compromised in a data breach.
The bot uses the Have I Been Pwned? API to check if a password has been leaked, and it provides tips on creating strong and secure passwords.
-
Generates a random 12-character password when prompted.
-
Checks if a password has been compromised in a data breach.
- Provides tips on creating strong and secure passwords.
- Python 3.6 or higher
discord
library (can be installed usingpip install discord
)requests
library (can be installed usingpip install requests
)
- Clone the repository to your local machine.
git clone https://github.com/itsmoe15/SecurePassBot.git
- Install the required libraries.
pip install -r requirements.txt
- Edit the
token
variable in the.env.example
file to use your own Discord bot token. and rename it to.env
DISCORD_TOKEN=your-bot-token-goes-here
- Give the bot the permission to run
sudo chmod +x main.py
- Run the script.
python main.py
The bot responds to DMs from users with a password to check. To check a password, send a DM to the bot with the password as the message content. The bot will check if the password has been compromisedin a data breach and respond with an appropriate message.
To generate a random password, send the message "generate" to the bot in any channel that the bot has access to. The bot will respond with a random 12-character password.
This bot is provided as-is and without warranty. The bot's creator is not responsible for any damages or losses arising from the use of this bot. Use this bot at your own risk.
Contributions are welcome! If you find a bug or have a suggestion for a new feature, please open an issue on the GitHub repository or submit a pull request.
This bot was created by Moe. The bot uses the Have I Been Pwned? API as its database to check if a password has been leaked.
This project is licensed under the GNU GENERAL PUBLIC LICENSE.