aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/halloween/spookifications.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-11-09 10:09:20 +0000
committerGravatar Chris Lovering <[email protected]>2023-11-13 14:42:19 +0000
commita6a8f8ed9b4f6daa454703286250b1d2b72e85a6 (patch)
treed30020e77e59a891cb36f6f2ce922eef16535c28 /bot/utils/halloween/spookifications.py
parentBump ruff from 0.1.4 to 0.1.5 (diff)
Lint repo with new ruff rules
Diffstat (limited to 'bot/utils/halloween/spookifications.py')
-rw-r--r--bot/utils/halloween/spookifications.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/utils/halloween/spookifications.py b/bot/utils/halloween/spookifications.py
index b0c139e6..2f8c1448 100644
--- a/bot/utils/halloween/spookifications.py
+++ b/bot/utils/halloween/spookifications.py
@@ -29,13 +29,13 @@ def pentagram(im: Image.Image) -> Image.Image:
def bat(im: Image.Image) -> Image.Image:
"""
- Adds a bat silhoutte to the image.
+ Adds a bat silhouette to the image.
- The bat silhoutte is of a size at least one-fifths that of the original image and may be rotated
+ The bat silhouette 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
+ wt, _ = im.size
bat = Image.open("bot/resources/holidays/halloween/bat-clipart.png")
bat_size = randint(wt//10, wt//7)
rot = randint(0, 90)