From c7e1df4bb5088d86d5e2efb4aede5423066ea95e Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Fri, 9 Mar 2018 18:58:52 +0100 Subject: [PATCH] adding an update command for the bot to make the website update --- streambot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/streambot.py b/streambot.py index 9f10c37..376d19b 100644 --- a/streambot.py +++ b/streambot.py @@ -85,6 +85,10 @@ class ArchivistBot(ClientXMPP): urllib.urlretrieve(msg['oob']['url'], targetFile, context=ctx) logging.getLogger().debug("saved to %s" % targetFile) + cmd = '/home/gitea/clones/varia/varia.website/make publish' + print(cmd) + os.system(cmd) + # if msg['type'] in ('chat', 'normal'): # msg.reply("Thanks for sending\n%(body)s" % msg).send()