2022-10-29 11:39:40 -06:00
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
def remote():
|
|
|
|
|
try:
|
|
|
|
|
process = subprocess.Popen(["lastversion", "ionburger/turdbot"],stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
2022-11-07 12:45:00 -07:00
|
|
|
return (process.communicate()[0]).strip("\n")
|
2022-10-29 11:39:40 -06:00
|
|
|
except:
|
|
|
|
|
return 0
|
|
|
|
|
def local():
|
2022-11-07 12:45:00 -07:00
|
|
|
return open("VERSION","r").read().strip("\n")
|