aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/pfp_modify.py
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-02-18 19:43:26 +0000
committerGravatar Chris <[email protected]>2021-02-18 19:43:26 +0000
commit032d4ae8300ed4570e0b471dd49f628f446cb1fa (patch)
tree2df2a45552018923159cf20509c7f4ceddc40d33 /bot/exts/evergreen/pfp_modify.py
parentLog what func is being ran in the executor. (diff)
Add root alias support for commands
Diffstat (limited to 'bot/exts/evergreen/pfp_modify.py')
-rw-r--r--bot/exts/evergreen/pfp_modify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/evergreen/pfp_modify.py b/bot/exts/evergreen/pfp_modify.py
index 4245432e..a3f7e3f8 100644
--- a/bot/exts/evergreen/pfp_modify.py
+++ b/bot/exts/evergreen/pfp_modify.py
@@ -139,12 +139,13 @@ class PfpModify(commands.Cog):
await ctx.send(file=file, embed=embed)
@commands.max_concurrency(1, commands.BucketType.guild, wait=True)
+ @commands.group()
async def pfp_modify(self, ctx: commands.Context) -> None:
"""Groups all of the pfp modifing commands to allow a single concurrency limit."""
if not ctx.invoked_subcommand:
await ctx.send_help(ctx.command)
- @pfp_modify.command(name="8bitify")
+ @pfp_modify.command(name="8bitify", root_aliases=("8bitify",))
async def eightbit_command(self, ctx: commands.Context) -> None:
"""Pixelates your avatar and changes the palette to an 8bit one."""
async with ctx.typing():