This commit is contained in:
@ -198,6 +198,9 @@ class WeatherAPI:
|
||||
return embed
|
||||
|
||||
async def weather(self, ctx, location):
|
||||
location = "".join(
|
||||
char for char in location if char.isalpha() or char.isspace()
|
||||
)
|
||||
weather_data = await self.get_weather(ctx, location)
|
||||
if weather_data:
|
||||
embed = self.weather_embed(weather_data)
|
||||
|
Reference in New Issue
Block a user