A Discord bot implementation of Troy Hunt's haveibeenpwned.com service,
a free resource for anyone to quickly assess if they may have been put
at risk due to an online account of theirs having been compromised or
'pwned' in a data breach, using the hibpwned python library.
Python 3.6+, pip, and Curl
pip install -r requirements.txt pip install -U discord.py
Head over to Discord and create a new app.
Record your Client_ID. On the left, click Bot, and then Add Bot.
Once you are done setting up your bot, record the Token and Client Secret.
Making calls to the HIBP API requires a key. You can purchase an HIBP-API-Key at
In pwned_bot.py replace all <...> with appropriate information.
To start bot, run:
To add bot to server add your Client_ID to this URL and visit in browser:
https://discordapp.com/oauth2/authorize?client_id= Client_ID &scope=bot
When bot is active in server type "!help" for a list of commands.
This work is licensed under a Creative Commons Attribution 4.0 International License.