|
@@ -59,9 +59,9 @@ class Geolocate(Command): |
|
|
res = json.loads(query) |
|
|
res = json.loads(query) |
|
|
|
|
|
|
|
|
try: |
|
|
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"] |
|
|
latitude = res["latitude"] |
|
|
longitude = res["longitude"] |
|
|
longitude = res["longitude"] |
|
|
utcoffset = res["timeZone"] |
|
|
utcoffset = res["timeZone"] |
|
|