diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/books.py | |
| parent | received.command takes a final [command] part (diff) | |
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/books.py')
| -rw-r--r-- | modules/books.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/books.py b/modules/books.py index 7a0204a6..e3642198 100644 --- a/modules/books.py +++ b/modules/books.py @@ -36,10 +36,11 @@ class Module(ModuleManager.BaseModule): else: event["stderr"].write("Failed to load results") - @Utils.hook("received.command.isbn", min_args=1, usage="<isbn>") + @Utils.hook("received.command.isbn", min_args=1) def isbn(self, event): """ - Get book information from a provided ISBN + :help: Get book information from a provided ISBN + :usage: <isbn> """ isbn = event["args_split"][0] if len(isbn) == 10: @@ -47,9 +48,10 @@ class Module(ModuleManager.BaseModule): isbn = isbn.replace("-", "") self.get_book("isbn:%s" % isbn, event) - @Utils.hook("received.command.book", min_args=1, usage="<book title>") + @Utils.hook("received.command.book", min_args=1) def book(self, event): """ - Get book information from a provided title + :help: Get book information from a provided title + :usage: <book title> """ self.get_book(event["args"], event) |
