1
0
src/it/bang.py
2023-09-18 00:53:58 -04:00

12 lines
222 B
Python

import subprocess
def main(buffer, command):
if len(command) == 1:
print("?")
else:
try:
print("[%d]" % subprocess.run(command[1:]).returncode)
except Exception as err:
print("%s" % str(err))
return buffer