feat: added carnagerefund command
This commit is contained in:
parent
b9d18c53e7
commit
63eb812170
1 changed files with 4 additions and 9 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue