This commit is contained in:
@ -26,7 +26,9 @@ intents.members = True
|
|||||||
intents.messages = True
|
intents.messages = True
|
||||||
intents.message_content = 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")
|
garfbot.remove_command("help")
|
||||||
|
|
||||||
garf_respond = GarfbotRespond()
|
garf_respond = GarfbotRespond()
|
||||||
@ -156,7 +158,7 @@ async def on_message(message):
|
|||||||
guild_id = message.guild.id
|
guild_id = message.guild.id
|
||||||
|
|
||||||
# Army of Dawn Server only!!
|
# Army of Dawn Server only!!
|
||||||
if guild_id == 719605634772893757:
|
if garfbot and guild_id == 719605634772893757:
|
||||||
await aod_message(garfbot, message)
|
await aod_message(garfbot, message)
|
||||||
|
|
||||||
responses = garf_respond.get_responses(guild_id)
|
responses = garf_respond.get_responses(guild_id)
|
||||||
|
@ -198,6 +198,9 @@ class WeatherAPI:
|
|||||||
return embed
|
return embed
|
||||||
|
|
||||||
async def weather(self, ctx, location):
|
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)
|
weather_data = await self.get_weather(ctx, location)
|
||||||
if weather_data:
|
if weather_data:
|
||||||
embed = self.weather_embed(weather_data)
|
embed = self.weather_embed(weather_data)
|
||||||
|
Reference in New Issue
Block a user