aboutsummaryrefslogtreecommitdiff
path: root/modules/upc.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-19 13:25:12 +0100
committerGravatar jesopo2018-09-19 13:25:12 +0100
commitfcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch)
tree0015e3da000323b8f576f3303807176f1f4ea794 /modules/upc.py
parentFix some styling in ducks.py (diff)
signature
Refactor everything to use delimited events
Diffstat (limited to 'modules/upc.py')
-rw-r--r--modules/upc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/upc.py b/modules/upc.py
index 404fe400..53266896 100644
--- a/modules/upc.py
+++ b/modules/upc.py
@@ -6,8 +6,7 @@ class Module(object):
_name = "UPC"
def __init__(self, bot, events, exports):
self.bot = bot
- events.on("received").on("command").on(
- "upc", "ean", "gtin").hook(
+ events.on("received.command").on("upc", "ean", "gtin").hook(
self.upc, min_args=1, usage="<UPC|EAN>",
help="Look up a product by UPC or EAN")