add !gtin to upc.py

This commit is contained in:
jesopo 2018-07-25 13:06:31 +01:00
parent a7a28adde7
commit f751d85824

View file

@ -6,7 +6,8 @@ class Module(object):
_name = "UPC"
def __init__(self, bot):
self.bot = bot
bot.events.on("received").on("command").on("upc", "ean").hook(
bot.events.on("received").on("command").on(
"upc", "ean", "gtin").hook(
self.upc, min_args=1, usage="<UPC|EAN>",
help="Look up a product by UPC or EAN")