def location(person, default=None): return lib.mod('userinfo')._get(person, 'location', default=None)
-@lib.hook(needchan=False)
+@lib.hook(('weather','w'), needchan=False)
@lib.help('[<location>]', 'show weather for your location')
def weather(bot, user, chan, realtarget, *args):
if len(args) == 0:
}
bot.msg(chan, output)
else:
- bot.msg(chan, "I don't know where to look!")
+ bot.msg(chan, "I don't know where to look! Try SETINFO LOCATION <your location>")