CA MARCHE
This commit is contained in:
parent
f878bf87b1
commit
2f62843136
@ -118,3 +118,6 @@ class MainClass(BaseClass):
|
|||||||
for module, versions in modules.items():
|
for module, versions in modules.items():
|
||||||
text += module + " - " + ", ".join(versions)
|
text += module + " - " + ", ".join(versions)
|
||||||
await message.channel.send(text)
|
await message.channel.send(text)
|
||||||
|
|
||||||
|
async def com_web_dl(self, message, args, kwargs):
|
||||||
|
await self.api.download(args[1], args[2])
|
||||||
|
@ -30,5 +30,5 @@ class Api:
|
|||||||
|
|
||||||
async def download(self, module, version):
|
async def download(self, module, version):
|
||||||
await self._download("modules/"+module+"/"+version, filename="temp.zip")
|
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))
|
z.extractall(os.path.join("modules", module))
|
||||||
|
Loading…
Reference in New Issue
Block a user