Skip to content
A Discord bot implementation of Troy Hunt's haveibeenpwned.com service.
Python
Branch: master
Clone or download
Latest commit 10421f8 Sep 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Add files via upload Mar 23, 2019
README.md Dependency change Sep 11, 2019
pwned_bot.py Fixed typos Sep 4, 2019
requirements.txt Add files via upload Mar 23, 2019

README.md

pwnedBot

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.

Requirments

Python 3.6+, pip, and Curl

pip install -r requirements.txt
pip install -U discord.py

Installation

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 https://haveibeenpwned.com/API/Key

In pwned_bot.py replace all <...> with appropriate information.

To start bot, run:

python pwned_bot.py

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

Usage

When bot is active in server type "!help" for a list of commands.

HELP BREACH_NAME PASSWORD SEARCH PASTES PASTE_ID

License

All data sourced from https://haveibeenpwned.com
Visit https://haveibeenpwned.com/API/v3 to read the Acceptable Use Policy
for rules regarding acceptable usage of this API.

This work is licensed under a Creative Commons Attribution 4.0 International License.
CCv4
plasticuproject

You can’t perform that action at this time.