]> jfr.im git - erebus.git/blobdiff - modules/weather.py
trivia - alias !trivia to !start
[erebus.git] / modules / weather.py
index 2ec27be714cd879de5fde8169a500909910a0eda..5f016c0ecb32494e88fc084bc7b2cb3a3411a8df 100644 (file)
@@ -27,7 +27,7 @@ if sys.version_info.major < 3:
 else:
        from urllib.request import urlopen
 
-def location(person, default=None): return lib.mod('userinfo')._get(person, 'location', default=None)
+def location(person, default=None): return lib.mod('userinfo').get(person, 'location', default=None)
 
 def _dayofweek(dayname):
        return ['mon','tue','wed','thu','fri','sat','sun'].index(dayname.lower())
@@ -64,7 +64,7 @@ def _weather(place):
                        'link': current['forecast_url'],
                }
        else:
-               return "I don't know where to look! Try %sSETINFO LOCATION <your location>" % (lib.parent.trigger)
+               return "I don't know where to look! Try %sSETINFO LOCATION <your location>" % (lib.parent.trigger,)
 
 @lib.hook(('weather','w'), needchan=False, wantchan=True)
 @lib.help('[<location>]', 'show weather for your location')