From 46b6d40fcdf7778bd38e86821e48c674a40643a7 Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Tue, 2 Feb 2021 00:19:44 -0600 Subject: [PATCH] add .svg to excluded filetypes for hastebin upload --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 509ea70..2a7833e 100644 --- a/bot.py +++ b/bot.py @@ -36,7 +36,7 @@ async def on_message(message): # Binflop if len(message.attachments) > 0: if not message.attachments[0].url.endswith( - ('.png', '.jpg', '.jpeg', '.mp4', '.mov', '.avi', '.gif', '.image')): + ('.png', '.jpg', '.jpeg', '.mp4', '.mov', '.avi', '.gif', '.image', '.svg')): download = message.attachments[0].url async with aiohttp.ClientSession() as session: async with session.get(download, allow_redirects=True) as r: