Browse Source

een slimme ingreep van Danny

master
mb@mb 6 years ago
parent
commit
de13e5d17c
  1. 4
      streambot.py

4
streambot.py

@ -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()

Loading…
Cancel
Save