10 lines
325 B
Python
10 lines
325 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("config/VERSION","r").read().strip("\n") |