Compare commits

...

5 Commits

Author SHA1 Message Date
48a97ea739 Update README.md 2025-02-11 11:52:34 +01:00
4448c68175 Update webhook.sh 2025-02-11 11:52:04 +01:00
5895eb1d5c Update README.md 2025-02-11 11:51:24 +01:00
f1420b7ef2 Merge branch 'main' of ssh://docker.sq.lan:3022/Bash/Discord_webhook 2025-02-11 11:34:44 +01:00
2cefe7dcbb new screenshot 2025-02-11 11:34:29 +01:00
3 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,10 @@ Install jq:
yay -S jq
```
Take a look at the script and :
* Add your own webhook URL in $WEBHOOK
* Customize the beginning and ending, add your own user id in the ending if you want to be notified
Run a command and send its content :
```
my_command 2>&1 | ./webhook.sh

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -7,7 +7,7 @@ begin="Command result:
ending="
\`\`\`
<@635539351324983374>
<@YOURUSERIDHERE>
-# Sent from $(hostname) @ $(date)"
#Read from pipe