add support for .jpeg extensions
@@ -62,7 +62,7 @@ class Minecraft(commands.Cog):
img = files[0]
- if not img.filename.lower()[-4:] in ('.jpg', '.png',):
+ if img.filename.lower()[-4:] not in ('.jpg', '.png',) and not img.filename.lower()[-5:] in ('.jpeg'):
await self.bot.send(ctx, f'Please use either the png or jpg image format. (You used retarded format: {img.filename.lower()[4:]})')
return
