Browse Source

een slimme ingreep van Danny

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

Loading…
Cancel
Save