Procházet zdrojové kódy

converter now will accept images with uppercase file extensions

tags/v2.0.0
Roxie Gibson před 5 roky
rodič
revize
5ca4cbec95
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      roxbot/converters.py

+ 1
- 1
roxbot/converters.py Zobrazit soubor

@@ -77,7 +77,7 @@ class AvatarURL(commands.UserConverter):
Will do a user lookup, if that fails, then tries to parse the argument for a link
"""
async def convert(self, ctx, argument):
if any(x in argument.split(".")[-1] for x in ("png", "jpg", "jpeg")):
if any(x in argument.split(".")[-1].lower() for x in ("png", "jpg", "jpeg")):
return argument
else:
try:

Načítá se…
Zrušit
Uložit