Skip to content

Commit

Permalink
Update extensions.py
Browse files Browse the repository at this point in the history
updated footer for embeds
  • Loading branch information
DanielOrourke02 authored May 18, 2024
1 parent 6f497d8 commit efd0292
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def recipes(self, ctx):
recipe_text = ', '.join([f"{count}x {combined_items[item]['name']}" for item, count in recipe_details.items() if item != 'result'])
embed.add_field(name=f"{recipe_id}", value=f"**Sell price: {craftables.get(recipe_id, {}).get('sell', 'unknown price')}**\n{recipe_text}", inline=False)

embed.set_footer(text=f"Made by mal023")
embed.set_footer(text=f"Need some help? Do {prefix}tutorial")

await ctx.send(embed=embed)
except Exception as e:
Expand All @@ -219,7 +219,7 @@ async def craft(self, ctx, item_name: str=None):
if item_name is None:
embed = discord.Embed(title="Incorrect Usage", description=f"Correct usage: `{ctx.prefix}craft <item>`", color=embed_error)

embed.set_footer(text=f"Made by mal023")
embed.set_footer(text=f"Need some help? Do {prefix}tutorial")

await ctx.send(embed=embed)
return
Expand All @@ -242,7 +242,7 @@ async def craft(self, ctx, item_name: str=None):

embed = discord.Embed(title="Missing Items", description=f"You are missing {missing_items_text} for crafting {item_name}.", color=embed_error)

embed.set_footer(text=f"Made by mal023")
embed.set_footer(text=f"Need some help? Do {prefix}tutorial")

await ctx.send(embed=embed)
else:
Expand All @@ -256,12 +256,12 @@ async def craft(self, ctx, item_name: str=None):

embed = discord.Embed(title="Crafting Successful", description=f"You have crafted {recipe['result']}.", color=discord.Color.green())

embed.set_footer(text=f"Made by mal023")
embed.set_footer(text=f"Need some help? Do {prefix}tutorial")

await ctx.send(embed=embed)
else:
embed = discord.Embed(title="Error", description="This item cannot be crafted or does not exist.", color=embed_error)
embed.set_footer(text=f"Made by mal023")
embed.set_footer(text=f"Need some help? Do {prefix}tutorial")
await ctx.send(embed=embed)
except Exception as e:
print(e)
Expand Down

0 comments on commit efd0292

Please sign in to comment.