diff --git a/bin/hooks/discord-announce.py b/bin/hooks/discord-announce.py index e31668c8..9c5412ad 100755 --- a/bin/hooks/discord-announce.py +++ b/bin/hooks/discord-announce.py @@ -13,9 +13,15 @@ example usage as global config: --xau f,t5,j,bin/hooks/discord-announce.py example usage as a volflag (per-volume config): - -v srv/inc:inc:c,xau=f,t5,j,bin/hooks/discord-announce.py + -v srv/inc:inc:r:rw,ed:c,xau=f,t5,j,bin/hooks/discord-announce.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on all uploads with the params listed below) parameters explained, + xbu = execute after upload f = fork; don't wait for it to finish t5 = timeout if it's still running after 5 sec j = provide upload information as json; not just the filename @@ -30,6 +36,7 @@ then use this to design your message: https://discohook.org/ def main(): WEBHOOK = "https://discord.com/api/webhooks/1234/base64" + WEBHOOK = "https://discord.com/api/webhooks/1066830390280597718/M1TDD110hQA-meRLMRhdurych8iyG35LDoI1YhzbrjGP--BXNZodZFczNVwK4Ce7Yme5" # read info from copyparty inf = json.loads(sys.argv[1]) diff --git a/bin/hooks/notify.py b/bin/hooks/notify.py index ffcb531f..6e5dda86 100755 --- a/bin/hooks/notify.py +++ b/bin/hooks/notify.py @@ -17,8 +17,12 @@ depdencies: example usages; either as global config (all volumes) or as volflag: --xau f,bin/hooks/notify.py - -v srv/inc:inc:c,xau=f,bin/hooks/notify.py - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + -v srv/inc:inc:r:rw,ed:c,xau=f,bin/hooks/notify.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on all uploads with the params listed below) parameters explained, xau = execute after upload diff --git a/bin/hooks/notify2.py b/bin/hooks/notify2.py index 185b7631..87b80c1f 100755 --- a/bin/hooks/notify2.py +++ b/bin/hooks/notify2.py @@ -15,9 +15,13 @@ and also supports --xm (notify on 📟 message) example usages; either as global config (all volumes) or as volflag: --xm f,j,bin/hooks/notify2.py --xau f,j,bin/hooks/notify2.py - -v srv/inc:inc:c,xm=f,j,bin/hooks/notify2.py - -v srv/inc:inc:c,xau=f,j,bin/hooks/notify2.py - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + -v srv/inc:inc:r:rw,ed:c,xm=f,j,bin/hooks/notify2.py + -v srv/inc:inc:r:rw,ed:c,xau=f,j,bin/hooks/notify2.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on all uploads / msgs with the params listed below) parameters explained, xau = execute after upload diff --git a/bin/hooks/reject-extension.py b/bin/hooks/reject-extension.py index fca74094..9d00c2f4 100755 --- a/bin/hooks/reject-extension.py +++ b/bin/hooks/reject-extension.py @@ -10,7 +10,12 @@ example usage as global config: --xbu c,bin/hooks/reject-extension.py example usage as a volflag (per-volume config): - -v srv/inc:inc:c,xbu=c,bin/hooks/reject-extension.py + -v srv/inc:inc:r:rw,ed:c,xbu=c,bin/hooks/reject-extension.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on all uploads with the params listed below) parameters explained, xbu = execute before upload diff --git a/bin/hooks/reject-mimetype.py b/bin/hooks/reject-mimetype.py index d7bc0fe7..15e870ee 100755 --- a/bin/hooks/reject-mimetype.py +++ b/bin/hooks/reject-mimetype.py @@ -17,7 +17,12 @@ example usage as global config: --xau c,bin/hooks/reject-mimetype.py example usage as a volflag (per-volume config): - -v srv/inc:inc:c,xau=c,bin/hooks/reject-mimetype.py + -v srv/inc:inc:r:rw,ed:c,xau=c,bin/hooks/reject-mimetype.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on all uploads with the params listed below) parameters explained, xau = execute after upload diff --git a/bin/hooks/wget.py b/bin/hooks/wget.py index b048c060..4852db89 100755 --- a/bin/hooks/wget.py +++ b/bin/hooks/wget.py @@ -15,9 +15,15 @@ example usage as global config: --xm f,j,t3600,bin/hooks/wget.py example usage as a volflag (per-volume config): - -v srv/inc:inc:c,xm=f,j,t3600,bin/hooks/wget.py + -v srv/inc:inc:r:rw,ed:c,xm=f,j,t3600,bin/hooks/wget.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on all messages with the params listed below) parameters explained, + xm = execute on message-to-server-log f = fork so it doesn't block uploads j = provide message information as json; not just the text c3 = mute all output diff --git a/bin/hooks/xiu-sha.py b/bin/hooks/xiu-sha.py index 635e93d9..d8a96473 100755 --- a/bin/hooks/xiu-sha.py +++ b/bin/hooks/xiu-sha.py @@ -18,7 +18,12 @@ example usage as global config: --xiu i5,j,bin/hooks/xiu-sha.py example usage as a volflag (per-volume config): - -v srv/inc:inc:c,xiu=i5,j,bin/hooks/xiu-sha.py + -v srv/inc:inc:r:rw,ed:c,xiu=i5,j,bin/hooks/xiu-sha.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on batches of uploads with the params listed below) parameters explained, xiu = execute after uploads... diff --git a/bin/hooks/xiu.py b/bin/hooks/xiu.py index 8b21a25c..35aed3e6 100755 --- a/bin/hooks/xiu.py +++ b/bin/hooks/xiu.py @@ -15,7 +15,12 @@ example usage as global config: --xiu i1,j,bin/hooks/xiu.py example usage as a volflag (per-volume config): - -v srv/inc:inc:c,xiu=i1,j,bin/hooks/xiu.py + -v srv/inc:inc:r:rw,ed:c,xiu=i1,j,bin/hooks/xiu.py + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + (share filesystem-path srv/inc as volume /inc, + readable by everyone, read-write for user 'ed', + running this plugin on batches of uploads with the params listed below) parameters explained, xiu = execute after uploads...