From aea0f80e6c0801936ff010b9639b9125c01325dc Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Fri, 24 Nov 2023 03:04:33 -0600 Subject: [PATCH] asdf --- lib/globals.sh | 2 +- webhook.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 webhook.sh diff --git a/lib/globals.sh b/lib/globals.sh index 4a29e8d..a72e701 100644 --- a/lib/globals.sh +++ b/lib/globals.sh @@ -33,7 +33,7 @@ export TAKISTAN_MOD_ID=2563233742 ################### GLOBAL ALIASES ########################### # note: OLD? MAYBE NEEDED? ###########alias do_sync='rsync -rvltDhu --delete --partial --progress' -unalias rsync +unalias rsync 2>/dev/null ||: alias do_sync='rsync -avhu --progress --delete --partial --links' ################### GLOBAL ALIASES ########################### diff --git a/webhook.sh b/webhook.sh new file mode 100644 index 0000000..7d59d96 --- /dev/null +++ b/webhook.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +webhook_url="https://discord.com/api/webhooks/1176483934008262749/F2fav42fOyucZcgf-0z9o7iY9AkCPCNBfhazdeUU-9Ycc7jnhO7l12xS-F7idbK60xtz" + +msg() { + message="$(printf '%s' "$*" | jq -Rsa .)" + + curl -s \ + -X POST "$webhook_url" \ + -H "Content-Type:application/json" \ + --data "{\"content\": $message}" +}