small fixes
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 16s

This commit is contained in:
2025-06-08 13:02:05 -05:00
parent a7412445d4
commit 9a68c72d89
2 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,9 @@ intents.members = True
intents.messages = True
intents.message_content = True
garfbot = commands.Bot(command_prefix=["Garfbot ", "garfbot ","Garf", "garf", "$"], intents=intents)
garfbot = commands.Bot(
command_prefix=["Garfbot ", "garfbot ", "Garf", "garf", "$"], intents=intents
)
garfbot.remove_command("help")
garf_respond = GarfbotRespond()
@ -156,7 +158,7 @@ async def on_message(message):
guild_id = message.guild.id
# Army of Dawn Server only!!
if guild_id == 719605634772893757:
if garfbot and guild_id == 719605634772893757:
await aod_message(garfbot, message)
responses = garf_respond.get_responses(guild_id)

View File

@ -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)