Pārlūkot izejas kodu

converter now will accept images with uppercase file extensions

tags/v2.0.0
Roxie Gibson pirms 5 gadiem
vecāks
revīzija
5ca4cbec95
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      roxbot/converters.py

+ 1
- 1
roxbot/converters.py Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt