Skip to content

Commit

Permalink
Paldex Update, Logo Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoz committed Sep 26, 2024
1 parent 9f7faf4 commit d708459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cogs/palgame/paldex.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import nextcord
from nextcord.ext import commands
from utils.errorhandling import restrict_command

class PaldexCog(commands.Cog):
def __init__(self, bot):
Expand All @@ -20,6 +21,7 @@ async def autocomplete_pal(self, interaction: nextcord.Interaction, current: str
await interaction.response.send_autocomplete(choices)

@nextcord.slash_command(description="Search for a Pal in the Paldex")
@restrict_command()
async def paldex(
self,
interaction: nextcord.Interaction,
Expand All @@ -40,7 +42,7 @@ async def paldex(
embed.add_field(name="Attack", value=f"Melee: {stats['Attack']['Melee']}\nRanged: {stats['Attack']['Ranged']}", inline=True)
embed.add_field(name="Rarity", value=pal["Rarity"], inline=True)

skills = "\n".join([f"**{skill['Name']}**: {skill['Description']}" for skill in pal["Skills"]])
skills = "\n".join([f"**{skill['Name']}** (*Level: {skill['Level']}*)\n{skill['Description']}" for skill in pal["Skills"]])
embed.add_field(name="Skills", value=skills, inline=False)

await interaction.followup.send(embed=embed)
Expand Down
2 changes: 1 addition & 1 deletion utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is kept free and open source for a reason, respect my copyright.
FOOTER_IMAGE = "https://palbot.gg/images/rexavatar.png"
FOOTER_IMAGE = "https://palbot.gg/assets/images/rexavatar.png"
FOOTER_TEXT = "Powered by Palbot"
TITLE_URL = "https://github.com/dkoz/palworld-palbot"
PALBOT_VERSION = "v0.3.3"
Expand Down

0 comments on commit d708459

Please sign in to comment.