adding an update command for the bot to make the website update

This commit is contained in:
mb@mb 2018-03-09 18:58:52 +01:00
parent d04b3c4444
commit c7e1df4bb5

View File

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