turdbot/py/version.py
ionburger 74c8099efe eeee
2022-10-29 11:39:40 -06:00

10 lines
294 B
Python

import subprocess
def remote():
try:
process = subprocess.Popen(["lastversion", "ionburger/turdbot"],stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
return (process.communicate()[0])
except:
return 0
def local():
return open("VERSION","r").read()