From b25fc6f992c642d8c815b71ce844d9ecc782f760 Mon Sep 17 00:00:00 2001 From: crate Date: Sun, 8 Jun 2025 16:43:34 -0500 Subject: [PATCH] fix weather regex --- garfmain.py | 4 +++- garfpy/weather.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/garfmain.py b/garfmain.py index 94ebeeb..f588acc 100644 --- a/garfmain.py +++ b/garfmain.py @@ -27,7 +27,9 @@ intents.messages = True intents.message_content = True garfbot = commands.Bot( - command_prefix=["Garfbot ", "garfbot ", "Garf", "garf", "$"], case_insensitive=True, intents=intents + command_prefix=["Garfbot ", "garfbot ", "Garf", "garf", "$"], + case_insensitive=True, + intents=intents, ) garfbot.remove_command("help") diff --git a/garfpy/weather.py b/garfpy/weather.py index 27fab87..cd9d0df 100644 --- a/garfpy/weather.py +++ b/garfpy/weather.py @@ -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)