summaryrefslogtreecommitdiff
path: root/dot_anypaste-plugins/executable_anyclone
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2019-12-27 17:41:36 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2019-12-27 17:41:36 -0500
commitc2382aa25a3e2b37ee5227e9e8325f8faa1d435f (patch)
tree485af428bd57fd7faedb535efd66ddabd50e66a6 /dot_anypaste-plugins/executable_anyclone
parent[git] update email settings (diff)
[anypaste] add plugins
Diffstat (limited to '')
-rw-r--r--dot_anypaste-plugins/executable_anyclone21
1 files changed, 21 insertions, 0 deletions
diff --git a/dot_anypaste-plugins/executable_anyclone b/dot_anypaste-plugins/executable_anyclone
new file mode 100644
index 0000000..6fc03d5
--- /dev/null
+++ b/dot_anypaste-plugins/executable_anyclone
@@ -0,0 +1,21 @@
+#!/bin/sh
+case $1 in
+ check_eligibility)
+ true
+ ;;
+ upload)
+ d=$(date +%Y/%m/%d)
+ rclone copyto "$ap_path" "fafnir:shared/anypaste/$d/$ap_human_name"
+ echo >&2
+ echo "Direct: https://minio.toast.cafe/shared/anypaste/$d/$ap_human_name"
+ echo
+ ;;
+ get_info)
+ echo '[name]'
+ echo 'RClone'
+ echo '[description]'
+ echo 'LMAO'
+ echo '[tags]'
+ echo 'private'
+ echo 'direct'
+esac