diff options
Diffstat (limited to 'bot/cogs')
-rw-r--r-- | bot/cogs/spookyavatar.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/cogs/spookyavatar.py b/bot/cogs/spookyavatar.py index 9a73a019..8a424b1f 100644 --- a/bot/cogs/spookyavatar.py +++ b/bot/cogs/spookyavatar.py @@ -1,8 +1,9 @@ -import aiohttp from io import BytesIO +import os -from discord.ext import commands +import aiohttp import discord +from discord.ext import commands from PIL import Image from bot.resources import spookifications @@ -44,6 +45,7 @@ class SpookyAvatar: f = discord.File(str(ctx.message.id)+'.png') embed.set_image(url='attachment://'+str(ctx.message.id)+'.png') await ctx.send(file=f, embed=embed) + os.remove(str(ctx.message.id)+'.png') def setup(bot): |