umi/contrib/notify.sh

7 lines
183 B
Bash

#!/usr/bin/bash
curl \
-X POST \
-H "Content-Type: application/json" \
-d '{"username": "system", "content": "'"$1"'"}' \
$DISCORD_STATUS_WEBHOOK_URL