From 76b753d0aa0cfdc96d2a3b357e883047aade1e78 Mon Sep 17 00:00:00 2001 From: Suhail Date: Mon, 3 Jun 2019 12:24:09 +0100 Subject: Added flags command for prideavatar --- bot/seasons/pride/pride_avatar.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bot/seasons/pride/pride_avatar.py b/bot/seasons/pride/pride_avatar.py index e1f09d34..77aff58c 100644 --- a/bot/seasons/pride/pride_avatar.py +++ b/bot/seasons/pride/pride_avatar.py @@ -76,7 +76,7 @@ class PrideAvatar(commands.Cog): ring.putalpha(mask) return ring - @commands.command(aliases=["avatarpride", "pridepfp", "prideprofile"]) + @commands.group(aliases=["avatarpride", "pridepfp", "prideprofile"], invoke_without_command=True) async def prideavatar(self, ctx, option="lgbt", pixels: int = 64): """ This surrounds an avatar with a border of a specified LGBT flag. @@ -123,6 +123,12 @@ class PrideAvatar(commands.Cog): await ctx.send(file=file, embed=embed) + @prideavatar.command() + async def flags(self, ctx): + """This lists the flags that can be used with the prideavatar command.""" + options = "\n".join(set(OPTIONS.values())) + await ctx.send(f"**I have the following flags:**\n{options}") + def setup(bot): """Cog load.""" -- cgit v1.2.3