aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/spookyavatar.py
diff options
context:
space:
mode:
authorGravatar hundredrab <[email protected]>2018-10-26 12:59:33 +0530
committerGravatar hundredrab <[email protected]>2018-10-26 12:59:33 +0530
commit75d9ba2bad71f4423d72197d408d1e61282ebeb2 (patch)
treeed42612dbb439dbe2b8cbe91773f6feeadaec41b /bot/cogs/spookyavatar.py
parentAdd more spookifications. (diff)
Various minor fixes.
Diffstat (limited to 'bot/cogs/spookyavatar.py')
-rw-r--r--bot/cogs/spookyavatar.py6
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):