Skip to content

Commit 968e208

Browse files
committed
fix: improve embed title in animal command
1 parent e8abeb9 commit 968e208

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ async def info(interaction):
278278
# Server Settings > Integrations > tack-oh > /say > Add roles or Members
279279
@bot.tree.command(name="say", description="Says something")
280280
@app_commands.describe(channel="The channel you want to send the message to", message="The message you want to send")
281-
async def say(interaction, channel: discord.TextChannel, message: str):
281+
async def say(interaction, channel: discord.TextChannel, message: str) -> None:
282282
channel = bot.get_channel(channel.id)
283283
await channel.send(str(message))
284284
await interaction.response.send_message(f"Message sent! {channel.mention}", ephemeral=True)

commands/fun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def fun_animal(self, interaction: discord.Interaction, animal: discord.app
2525
r = requests.get(url)
2626
fact = r.json()["fact"]
2727
img = r.json()["image"]
28-
embed = discord.Embed(title=f":nerd: Fact: {animal.value}", description=fact, colour=discord.Colour(0x00ff00))
28+
embed = discord.Embed(title=f":nerd: Fact: {animal.name}", description=fact, colour=discord.Colour(0x00ff00))
2929
embed.set_image(url=img)
3030
await interaction.response.send_message(embed=embed)
3131

settings/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def show(self, interaction: discord.Interaction) -> None:
108108
embed.add_field(name="🎧 Music", value=settings.module_music)
109109
embed.add_field(name="🍑 NSFW", value=settings.module_nsfw)
110110
await interaction.response.send_message(embed=embed)
111-
111+
112112
@app_commands.command(name="reset", description="Reset settings to default values")
113113
async def reset(self, interaction: discord.Interaction) -> None:
114114
try:
@@ -126,7 +126,7 @@ async def reset(self, interaction: discord.Interaction) -> None:
126126
settings.module_image = False
127127
settings.module_music = False
128128
settings.module_nsfw = False
129-
129+
130130
settings.save()
131131
embed = discord.Embed(title="✅ Success", colour=discord.Colour(0x00ff00),
132132
description="Settings have been reset to default values.")

0 commit comments

Comments
 (0)