upload_dino command

This commit is contained in:
Dusty.P 2018-05-09 01:28:31 -08:00
parent cbd19659b0
commit 79c5f0cf5a

View File

@ -15,7 +15,7 @@ class Uploader:
@commands.command(name='upload', aliases=['submit'])
async def upload_dino(self, ctx, official: str='unofficial', singleplayer: bool=False):
if ctx.message.attachments:
attachment = ctx.message.attachements[0]
attachment = ctx.message.attachments[0]
if attachment.filename.endswith('.zip'):
with BytesIO() as file:
await attachment.save(file)