From 34e2a0892cfab034024a97a8dd5c141da3f401be Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 25 Sep 2026 21:03:10 +0100 Subject: [PATCH] Added webhook_test function to test Discord and Fluxer webhook URL's --- .aliases | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/.aliases b/.aliases index 121904a..4634246 100644 --- a/.aliases +++ b/.aliases @@ -517,6 +517,53 @@ alias mkdir-random='mkdir $(cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 50 | #fi #} +## A function to test if Discord and Fluxer webhook URL's work +webhook_test() { + local webhook_url=$1 + + if [ -z "$webhook_url" ]; then + echo "Usage: discord_webhook_test " + return 1 + fi + + local payload=$(cat < /dev/null 2>&1; then + echo "โœ“ Test notification sent successfully" + else + echo "โœ— Failed to send test notification" + return 1 + fi +} + ## yt-dlp ## yt-dlp Default Limit alias yt-dlp-limit="yt-dlp --limit-rate 5M -f 137+140 $1"