een slimme ingreep van Danny

This commit is contained in:
mb@mb 2018-03-09 19:22:30 +01:00
parent 27daffefe2
commit de13e5d17c

View File

@ -85,9 +85,7 @@ class ArchivistBot(ClientXMPP):
urllib.urlretrieve(msg['oob']['url'], targetFile, context=ctx)
logging.getLogger().debug("saved to %s" % targetFile)
cmd = 'subprocess.call(["make","publish"], cwd="/home/gitea/clones/varia.website/")'
print(cmd)
os.system(cmd)
subprocess.call(["make","publish"], cwd="/home/gitea/clones/varia.website/")
# if msg['type'] in ('chat', 'normal'):
# msg.reply("Thanks for sending\n%(body)s" % msg).send()