turdbot/py/version.py
ionburger 28b6bb5068 eeee
2022-11-07 12:45:00 -07:00

10 lines
318 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]).strip("\n")
except:
return 0
def local():
return open("VERSION","r").read().strip("\n")