made tatsu_studs a string

This commit is contained in:
SeaswimmerTheFsh 2023-03-16 16:50:53 -04:00
parent b725881145
commit 409482a47f

View file

@ -17,10 +17,11 @@ class Galaxy(commands.Cog):
@commands.command(aliases=["pxc", "pc", "polarisconvert", "tatsutopolaris", "ttp"]) @commands.command(aliases=["pxc", "pc", "polarisconvert", "tatsutopolaris", "ttp"])
@commands.guild_only() @commands.guild_only()
async def polarisxpconvert(self, ctx, *, tatsu_studs: int): async def polarisxpconvert(self, ctx, *, tatsu_studs: str):
"""Converts Tatsu Studs to Polaris XP.""" """Converts Tatsu Studs to Polaris XP."""
math = round((tatsu_studs/25)*10) tatsu_studs_str = f"{tatsu_studs}".replace(",", "")
output_from = f'{tatsu_studs:,}' math = round((tatsu_studs_str/25)*10)
output_from = f'{tatsu_studs_str:,}'
output_to = f'{math:,}' output_to = f'{math:,}'
embed = discord.Embed(color=await self.bot.get_embed_color(None)) embed = discord.Embed(color=await self.bot.get_embed_color(None))
embed.add_field(name="Tatsu Studs", value=f"{output_from}", inline=False) embed.add_field(name="Tatsu Studs", value=f"{output_from}", inline=False)