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)
@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):