From 63eb81217053d9dfc3eae32485b4e7657fbf1f9e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 12:09:31 -0400 Subject: [PATCH] feat: added carnagerefund command --- galaxy/galaxy.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index fe0f892..f38aa91 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -46,15 +46,10 @@ class Galaxy(commands.Cog): await ctx.send(embed=embed) @commands.command() - async def lwaccess(self, ctx): - """You shouldn't be able to see this!""" - role = ctx.guild.get_role(1083210988888784996) - if role in ctx.author.roles: - await ctx.author.remove_roles(role, reason="Requested through -lwaccess") - await ctx.send(content="Higher Access role removed.") - else: - await ctx.author.add_roles(role, reason="Requested through -lwaccess") - await ctx.send(content="Higher Access role added.") + async def carnagerefund(self, ctx, message_id: str): + """This command generates a link to refund carnage of killed ships.""" + output = f"https://info.galaxy.casa/kills/{message_id}" + await ctx.send(f"Output link: {output}") @commands.Cog.listener('on_message') async def cocoreact(self, message):