aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/pride/pride_avatar.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/bot/seasons/pride/pride_avatar.py b/bot/seasons/pride/pride_avatar.py
index ce995073..e1f09d34 100644
--- a/bot/seasons/pride/pride_avatar.py
+++ b/bot/seasons/pride/pride_avatar.py
@@ -60,7 +60,6 @@ class PrideAvatar(commands.Cog):
@staticmethod
def crop_avatar(avatar):
"""This crops the avatar into a circle."""
-
mask = Image.new("L", avatar.size, 0)
draw = ImageDraw.Draw(mask)
draw.ellipse((0, 0) + avatar.size, fill=255)
@@ -70,7 +69,6 @@ class PrideAvatar(commands.Cog):
@staticmethod
def crop_ring(ring, px):
"""This crops the ring into a circle."""
-
mask = Image.new("L", ring.size, 0)
draw = ImageDraw.Draw(mask)
draw.ellipse((0, 0) + ring.size, fill=255)
@@ -88,7 +86,6 @@ class PrideAvatar(commands.Cog):
This has a maximum of 512px and defaults to a 64px border.
The full image is 1024x1024.
"""
-
pixels = 0 if pixels < 0 else 512 if pixels > 512 else pixels
option = option.lower()
@@ -129,6 +126,5 @@ class PrideAvatar(commands.Cog):
def setup(bot):
"""Cog load."""
-
bot.add_cog(PrideAvatar(bot))
log.info("PrideAvatar cog loaded")