diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/upc.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/upc.py')
| -rw-r--r-- | modules/upc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/upc.py b/modules/upc.py index 8da063f5..5c295fc3 100644 --- a/modules/upc.py +++ b/modules/upc.py @@ -5,10 +5,11 @@ UPCITEMDB_URL = "https://api.upcitemdb.com/prod/trial/lookup" class Module(ModuleManager.BaseModule): _name = "UPC" - @Utils.hook("received.command.upc|ean|gtin", min_args=1, usage="<UPC|EAN>") + @Utils.hook("received.command.upc|ean|gtin", min_args=1) def upc(self, event): """ - Look up a product by UPC, EAN or GTIN + :help: Look up a product by UPC, EAN or GTIN + :usage: <UPC|EAN|GTIN> """ arg_len = len(event["args_split"][0]) if not arg_len == 12 and not arg_len == 13: |
