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(-) (limited to 'bot') 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 From 8b0386f0fb648bd8d4628289747be6f5da189763 Mon Sep 17 00:00:00 2001 From: Suhail Date: Tue, 4 Jun 2019 14:50:36 +0100 Subject: Turned pride avatar into an embed --- bot/seasons/pride/pride_avatar.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'bot') diff --git a/bot/seasons/pride/pride_avatar.py b/bot/seasons/pride/pride_avatar.py index 77aff58c..9137db33 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 = { @@ -126,8 +128,15 @@ class PrideAvatar(commands.Cog): @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}") + 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): -- cgit v1.2.3 From 86a27a92a8ccedf181ff9d60850e093a93308c8e Mon Sep 17 00:00:00 2001 From: Suhail6inkling <38522108+Suhail6inkling@users.noreply.github.com> Date: Wed, 5 Jun 2019 09:22:03 +0100 Subject: Change list character Co-Authored-By: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> --- bot/seasons/pride/pride_avatar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/seasons/pride/pride_avatar.py b/bot/seasons/pride/pride_avatar.py index 9137db33..b7cd1331 100644 --- a/bot/seasons/pride/pride_avatar.py +++ b/bot/seasons/pride/pride_avatar.py @@ -129,7 +129,7 @@ class PrideAvatar(commands.Cog): 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) + options = "• " + "\n• ".join(choices) embed = discord.Embed( title="I have the following flags:", description=options, -- cgit v1.2.3