aboutsummaryrefslogtreecommitdiff
path: root/modules/haveibeenpwned.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/haveibeenpwned.py')
-rw-r--r--modules/haveibeenpwned.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/haveibeenpwned.py b/modules/haveibeenpwned.py
index fa10129c..854f69f3 100644
--- a/modules/haveibeenpwned.py
+++ b/modules/haveibeenpwned.py
@@ -4,8 +4,8 @@ URL_HAVEIBEENPWNEDAPI = "https://haveibeenpwned.com/api/v2/breachedaccount/%s"
URL_HAVEIBEENPWNED = "https://haveibeenpwned.com/"
class Module(object):
- def __init__(self, bot):
- bot.events.on("received").on("command").on("beenpwned").hook(
+ def __init__(self, bot, events):
+ events.on("received").on("command").on("beenpwned").hook(
self.beenpwned, min_args=1,
help="Find out if a username, email or similar has appeared "
"in any hacked databases", usage="<username/email>")