File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -53,4 +53,7 @@ Made the maintainer only command reload_exts reload the config.
5353As I started using ruff and uv here, I also formatted everything and addressed the hundreds and hundreds of errors ruff so joyfully raised.
5454
5555#### 1.6.1
56- Fixes various bugs introduced in 1.6.0, and also see #24 .
56+ Fixes various bugs introduced in 1.6.0, and also see #24 .
57+
58+ #### 1.6.2
59+ Time and weather commands were broken because of some importing issues.
Original file line number Diff line number Diff line change 77import tzfpy
88import config
99from nextcord .ext import commands
10- import geopy .extra
10+ from geopy .extra import rate_limiter
1111
1212
1313async def find_time (location : str ):
@@ -19,7 +19,7 @@ async def find_time(location: str):
1919 async with geopy .geocoders .Nominatim (
2020 user_agent = config .BOT_NAME , adapter_factory = geopy .adapters .AioHTTPAdapter
2121 ) as geolocator :
22- geocode = geopy . extra . rate_limiter .AsyncRateLimiter (
22+ geocode = rate_limiter .AsyncRateLimiter (
2323 geolocator .geocode , min_delay_seconds = 1
2424 )
2525 location_data = await geocode (location )
Original file line number Diff line number Diff line change 55import config
66from nextcord .ext import commands
77from open_meteo import OpenMeteo
8- import geopy .extra
8+ from geopy .extra import rate_limiter
99
1010
1111async def find_weather (location : str ):
@@ -17,7 +17,7 @@ async def find_weather(location: str):
1717 async with geopy .geocoders .Nominatim (
1818 user_agent = config .BOT_NAME , adapter_factory = geopy .adapters .AioHTTPAdapter
1919 ) as geolocator :
20- geocode = geopy . extra . rate_limiter .AsyncRateLimiter (
20+ geocode = rate_limiter .AsyncRateLimiter (
2121 geolocator .geocode , min_delay_seconds = 1
2222 )
2323 location_data = await geocode (location )
Original file line number Diff line number Diff line change 1313REDDIT_CLIENT_ID = getenv ("REDDIT_CLIENT_ID" )
1414REDDIT_CLIENT_SECRET = getenv ("REDDIT_CLIENT_SECRET" )
1515ERROR_COLOR = 0xFF0037
16- BOT_VERSION = "1.6.1 "
16+ BOT_VERSION = "1.6.2 "
1717
1818EMBED_COLOR_STR = getenv ("EMBED_COLOR" , "#2B2D31" )
1919if EMBED_COLOR_STR .startswith ("#" ):
You can’t perform that action at this time.
0 commit comments