feat: added carnagerefund command

This commit is contained in:
Seaswimmer 2023-08-01 12:09:31 -04:00
parent b9d18c53e7
commit 63eb812170
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -46,15 +46,10 @@ class Galaxy(commands.Cog):
await ctx.send(embed=embed) await ctx.send(embed=embed)
@commands.command() @commands.command()
async def lwaccess(self, ctx): async def carnagerefund(self, ctx, message_id: str):
"""You shouldn't be able to see this!""" """This command generates a link to refund carnage of killed ships."""
role = ctx.guild.get_role(1083210988888784996) output = f"https://info.galaxy.casa/kills/{message_id}"
if role in ctx.author.roles: await ctx.send(f"Output link: {output}")
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.")
@commands.Cog.listener('on_message') @commands.Cog.listener('on_message')
async def cocoreact(self, message): async def cocoreact(self, message):