diff options
| author | 2019-09-11 23:21:17 +0800 | |
|---|---|---|
| committer | 2019-09-11 23:21:17 +0800 | |
| commit | bfdfd5d4836c5f1a261388280f109b09e860738f (patch) | |
| tree | 62b632d778c78b1edf6cacafa18996a6b2c33077 /bot/seasons/evergreen/8bitify.py | |
| parent | Add more uwu conversions (diff) | |
| parent | Merge pull request #269 from python-discord/hacktoberfest-update (diff) | |
Merge branch 'text-modify-embeds' of github.com:python-discord/seasonalbot into text-modify-embeds
Diffstat (limited to '')
| -rw-r--r-- | bot/seasons/evergreen/8bitify.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/8bitify.py b/bot/seasons/evergreen/8bitify.py index 54db71db..60062fc1 100644 --- a/bot/seasons/evergreen/8bitify.py +++ b/bot/seasons/evergreen/8bitify.py @@ -13,17 +13,17 @@ class EightBitify(commands.Cog): @staticmethod def pixelate(image: Image) -> Image: - """Takes an image and pixelates it""" + """Takes an image and pixelates it.""" return image.resize((32, 32)).resize((1024, 1024)) @staticmethod def quantize(image: Image) -> Image: - """Reduces colour palette to 256 colours""" + """Reduces colour palette to 256 colours.""" return image.quantize(colors=32) @commands.command(name="8bitify") async def eightbit_command(self, ctx: commands.Context) -> None: - """Pixelates your avatar and changes the palette to an 8bit one""" + """Pixelates your avatar and changes the palette to an 8bit one.""" async with ctx.typing(): image_bytes = await ctx.author.avatar_url.read() avatar = Image.open(BytesIO(image_bytes)) |