Browse Source
add .svg to excluded filetypes for hastebin upload
master
Purpur
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
bot.py
|
@ -36,7 +36,7 @@ async def on_message(message): |
|
|
# Binflop |
|
|
# Binflop |
|
|
if len(message.attachments) > 0: |
|
|
if len(message.attachments) > 0: |
|
|
if not message.attachments[0].url.endswith( |
|
|
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 |
|
|
download = message.attachments[0].url |
|
|
async with aiohttp.ClientSession() as session: |
|
|
async with aiohttp.ClientSession() as session: |
|
|
async with session.get(download, allow_redirects=True) as r: |
|
|
async with session.get(download, allow_redirects=True) as r: |
|
|