Sfoglia il codice sorgente

converter now will accept images with uppercase file extensions

tags/v2.0.0
Roxie Gibson 5 anni fa
parent
commit
5ca4cbec95
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      roxbot/converters.py

+ 1
- 1
roxbot/converters.py Vedi File

@@ -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:

Loading…
Annulla
Salva