CA MARCHE

This commit is contained in:
fomys 2019-05-09 01:48:53 +02:00
parent f878bf87b1
commit 2f62843136
2 changed files with 4 additions and 1 deletions

View File

@ -118,3 +118,6 @@ class MainClass(BaseClass):
for module, versions in modules.items():
text += module + " - " + ", ".join(versions)
await message.channel.send(text)
async def com_web_dl(self, message, args, kwargs):
await self.api.download(args[1], args[2])

View File

@ -30,5 +30,5 @@ class Api:
async def download(self, module, version):
await self._download("modules/"+module+"/"+version, filename="temp.zip")
with zipfile.ZipFile('test.zip', "r") as z:
with zipfile.ZipFile('temp.zip', "r") as z:
z.extractall(os.path.join("modules", module))