aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-06-02 23:23:14 +0200
committerGravatar GitHub <[email protected]>2019-06-02 23:23:14 +0200
commit252683ded8f43388056a429c99b349f35ffa81e2 (patch)
treee7b43ae128599a80b9d3cd53e06eb72cacf4af43 /bot
parentMerge pull request #209 from Suhail6inkling/pride-avatar (diff)
Update pride_avatar.py
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")