diff --git a/earwigbot/commands/geolocate.py b/earwigbot/commands/geolocate.py index 78a9111..370f26f 100644 --- a/earwigbot/commands/geolocate.py +++ b/earwigbot/commands/geolocate.py @@ -59,9 +59,9 @@ class Geolocate(Command): res = json.loads(query) try: - country = res["countryName"] - region = res["regionName"] - city = res["cityName"] + country = res["countryName"].title() + region = res["regionName"].title() + city = res["cityName"].title() latitude = res["latitude"] longitude = res["longitude"] utcoffset = res["timeZone"]