From 65a98291e5685472e9c08db39a6f8abf6a055822 Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Thu, 18 Feb 2021 13:08:35 -0600 Subject: [PATCH] Update bot.py --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index fe4f0ed..1922dfb 100644 --- a/bot.py +++ b/bot.py @@ -34,8 +34,8 @@ async def on_ready(): 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', '.svg', '.jar', ',zip', '.tar', '.gz', '.msi', '.exe', '.html')): + if not message.attachments[0].url.lower().endswith( + ('.png', '.jpg', '.jpeg', '.mp4', '.mov', '.avi', '.gif', '.image', '.svg', '.jar', ',zip', '.tar', '.gz', '.msi', '.exe', '.html', '.webm')): text = await discord.Attachment.read(message.attachments[0], use_cached=False) text = text.decode('Latin-1') text = "\n".join(text.splitlines())