Add !w as an alias of !weather

This commit is contained in:
jesopo 2019-04-28 15:21:09 +01:00
parent a7a3f5fd25
commit 74ef18a418

View file

@ -10,6 +10,7 @@ class Module(ModuleManager.BaseModule):
if not user_location == None: if not user_location == None:
return "%s, %s" % (user_location["city"], user_location["country"]) return "%s, %s" % (user_location["city"], user_location["country"])
@utils.hook("received.command.w", alias_of="weather")
@utils.hook("received.command.weather") @utils.hook("received.command.weather")
def weather(self, event): def weather(self, event):
""" """