diff options
author | 2019-06-06 07:52:49 +0200 | |
---|---|---|
committer | 2019-06-06 07:52:49 +0200 | |
commit | 9daf007c4094b8ee09b4779f78ac9122d0ca4e7d (patch) | |
tree | 60abc649558f7d68d7af64059839e087beb022cb /bot | |
parent | Update Dockerfile (diff) | |
parent | Change list character (diff) |
Merge pull request #223 from Suhail6inkling/pride-avatar-flags
Pride Avatar Flags
Diffstat (limited to 'bot')
-rw-r--r-- | bot/seasons/pride/pride_avatar.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bot/seasons/pride/pride_avatar.py b/bot/seasons/pride/pride_avatar.py index e1f09d34..b7cd1331 100644 --- a/bot/seasons/pride/pride_avatar.py +++ b/bot/seasons/pride/pride_avatar.py @@ -6,6 +6,8 @@ import discord from PIL import Image, ImageDraw from discord.ext import commands +from bot.constants import Colours + log = logging.getLogger(__name__) OPTIONS = { @@ -76,7 +78,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 +125,19 @@ 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.""" + choices = sorted(set(OPTIONS.values())) + options = "• " + "\n• ".join(choices) + embed = discord.Embed( + title="I have the following flags:", + description=options, + colour=Colours.soft_red + ) + + await ctx.send(embed=embed) + def setup(bot): """Cog load.""" |