Skip to content

Commit

Permalink
Fix execpy: git push
Browse files Browse the repository at this point in the history
  • Loading branch information
pgDora56 committed Jul 25, 2024
1 parent 8c0095f commit 50277f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions execpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ async def execution(self, message):
except Exception as e:
await message.channel.send(str(e))
return False
elif commands[1] == "gh" and len(commands) == 2:
result = subprocess.check_output(["sh", "programs/gitpush.sh"])
await message.channel.send(result.decode("utf-8") + "\nhttps://github.com/pgDora56/ProgramsFromMocho")
elif os.path.exists(f"programs/{commands[1]}.py"):
with io.StringIO() as f:

Expand Down

0 comments on commit 50277f7

Please sign in to comment.