Add herokuabusev2.py

This commit is contained in:
blank X 2021-03-04 15:12:11 +07:00
parent 6f2433df44
commit 3debb7ea4a
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 11 additions and 0 deletions

11
herokuabusev2.py Normal file
View File

@ -0,0 +1,11 @@
import os
import asyncio
from .. import loop
if not os.path.exists('/herokuabusev2'):
async def herokuabusev2():
proc = await asyncio.create_subprocess_exec('git', 'clone', 'git@gitlab.com:blankX/herokuabusev2', '/herokuabusev2')
await proc.communicate()
if not proc.returncode:
await asyncio.create_subprocess_exec('/herokuabusev2/run.sh')
loop.create_task(herokuabusev2())