|
@ -85,6 +85,10 @@ 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 = '/home/gitea/clones/varia/varia.website/make publish' |
|
|
|
|
|
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() |
|
|
|
|
|
|
|
|