aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-05-30 20:27:23 -0400
committerGravatar GitHub <[email protected]>2019-05-30 20:27:23 -0400
commit484f61b04c0cfa5c02a2047c1f3fc7f34418d212 (patch)
tree88258e0b987f9bc31bef53f5afcf90074eb4233b /bot/utils
parentMerge pull request #211 from RohanRadia/master (diff)
parentFix snake draw command (diff)
Merge pull request #200 from python-discord/docstring-lint-change
Docstring lint change
Diffstat (limited to 'bot/utils')
-rw-r--r--bot/utils/halloween/spookifications.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/bot/utils/halloween/spookifications.py b/bot/utils/halloween/spookifications.py
index 390cfa49..69b49919 100644
--- a/bot/utils/halloween/spookifications.py
+++ b/bot/utils/halloween/spookifications.py
@@ -13,7 +13,6 @@ def inversion(im):
Returns an inverted image when supplied with an Image object.
"""
-
im = im.convert('RGB')
inv = ImageOps.invert(im)
return inv
@@ -21,7 +20,6 @@ def inversion(im):
def pentagram(im):
"""Adds pentagram to the image."""
-
im = im.convert('RGB')
wt, ht = im.size
penta = Image.open('bot/resources/halloween/bloody-pentagram.png')
@@ -37,7 +35,6 @@ def bat(im):
The bat silhoutte is of a size at least one-fifths that of the original image and may be rotated
up to 90 degrees anti-clockwise.
"""
-
im = im.convert('RGB')
wt, ht = im.size
bat = Image.open('bot/resources/halloween/bat-clipart.png')
@@ -55,7 +52,6 @@ def bat(im):
def get_random_effect(im):
"""Randomly selects and applies an effect."""
-
effects = [inversion, pentagram, bat]
effect = choice(effects)
log.info("Spookyavatar's chosen effect: " + effect.__name__)