aboutsummaryrefslogtreecommitdiff
path: root/modules/books.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/books.py')
-rw-r--r--modules/books.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/books.py b/modules/books.py
index 5f7c0627..9c94c656 100644
--- a/modules/books.py
+++ b/modules/books.py
@@ -7,12 +7,12 @@ REGEX_BOOKID = re.compile("id=([\w\-]+)")
class Module(object):
_name = "ISBN"
- def __init__(self, bot):
+ def __init__(self, bot, events):
self.bot = bot
- bot.events.on("received").on("command").on("isbn").hook(
+ events.on("received").on("command").on("isbn").hook(
self.isbn, help="Get book information from a provided ISBN",
min_args=1, usage="<isbn>")
- bot.events.on("received").on("command").on("book").hook(
+ events.on("received").on("command").on("book").hook(
self.book, help="Get book information from a provided title",
min_args=1, usage="<book title>")