From 75d9ba2bad71f4423d72197d408d1e61282ebeb2 Mon Sep 17 00:00:00 2001 From: hundredrab Date: Fri, 26 Oct 2018 12:59:33 +0530 Subject: Various minor fixes. --- bot/cogs/spookyavatar.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bot/cogs/spookyavatar.py') 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): -- cgit v1.2.3