diff options
author | 2019-06-02 23:23:14 +0200 | |
---|---|---|
committer | 2019-06-02 23:23:14 +0200 | |
commit | 252683ded8f43388056a429c99b349f35ffa81e2 (patch) | |
tree | e7b43ae128599a80b9d3cd53e06eb72cacf4af43 /bot | |
parent | Merge pull request #209 from Suhail6inkling/pride-avatar (diff) |
Update pride_avatar.py
Diffstat (limited to 'bot')
-rw-r--r-- | bot/seasons/pride/pride_avatar.py | 4 |
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") |