aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/seasons/pride/pride_avatar.py17
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."""