fix weather regex
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 5s
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 5s
This commit is contained in:
@ -199,7 +199,7 @@ class WeatherAPI:
|
||||
return embed
|
||||
|
||||
async def weather(self, ctx, location):
|
||||
location = re.sub(r"[^a-zA-Z\s]", "", location)
|
||||
location = re.sub(r"[^a-zA-Z0-9\s]", "", location)
|
||||
weather_data = await self.get_weather(ctx, location)
|
||||
if weather_data:
|
||||
embed = self.weather_embed(weather_data)
|
||||
|
Reference in New Issue
Block a user