making sure galaxy.py is updated on this
This commit is contained in:
parent
b241606796
commit
6c150045f5
1 changed files with 18 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
from redbot.core import commands, checks, Config, bot
|
from redbot.core import commands, checks, Config, bot
|
||||||
import discord
|
import discord
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import re
|
||||||
|
|
||||||
class Galaxy(commands.Cog):
|
class Galaxy(commands.Cog):
|
||||||
"""Custom cog intended for use on the Galaxy discord server.
|
"""Custom cog intended for use on the Galaxy discord server.
|
||||||
|
@ -14,6 +15,23 @@ class Galaxy(commands.Cog):
|
||||||
cocoemoji = 1028535684757209118
|
cocoemoji = 1028535684757209118
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@commands.command(aliases=["pxc", "pc", "polarisconvert", "tatsutopolaris", "ttp"])
|
||||||
|
@commands.guild_only()
|
||||||
|
async def polarisxpconvert(self, ctx, *, tatsu_studs: str):
|
||||||
|
"""Converts Tatsu Studs to Polaris XP."""
|
||||||
|
try:
|
||||||
|
tatsu_studs_int = int(f"{tatsu_studs}".replace(",", ""))
|
||||||
|
except ValueError:
|
||||||
|
await ctx.send(content="Please input a number!")
|
||||||
|
return
|
||||||
|
math = round((tatsu_studs_int/25)*10)
|
||||||
|
output_from = f'{tatsu_studs_int:,}'
|
||||||
|
output_to = f'{math:,}'
|
||||||
|
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="Polaris XP", value=f"{output_to}", inline=False)
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def galaxyissues(self, ctx, target: discord.Member = None):
|
async def galaxyissues(self, ctx, target: discord.Member = None):
|
||||||
if ctx.me.id == 1070819799254438039:
|
if ctx.me.id == 1070819799254438039:
|
||||||
|
|
Loading…
Reference in a new issue