diff options
-rw-r--r-- | bot/cogs/spookyavatar.py | 3 | ||||
-rw-r--r-- | bot/resources/spookifications.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bot/cogs/spookyavatar.py b/bot/cogs/spookyavatar.py index d06b259a..b11c72ee 100644 --- a/bot/cogs/spookyavatar.py +++ b/bot/cogs/spookyavatar.py @@ -25,7 +25,8 @@ class SpookyAvatar: async with session.get(url) as resp: return await resp.read() - @commands.command(name='savatar', aliases=['spookyavatar', 'spookify'], brief='Spookify an user\'s avatar.') + @commands.command(name='savatar', aliases=['spookyavatar', 'spookify'], + brief='Spookify an user\'s avatar.') async def spookyavatar(self, ctx, user: discord.Member=None): """ A command to print the user's spookified avatar. diff --git a/bot/resources/spookifications.py b/bot/resources/spookifications.py index aeb8388b..880b24e7 100644 --- a/bot/resources/spookifications.py +++ b/bot/resources/spookifications.py @@ -2,6 +2,10 @@ from PIL import ImageOps def inversion(im): + """Inverts an image. + + Returns an inverted image when supplied with an Image object. + """ im = im.convert('RGB') inv = ImageOps.invert(im) return inv |