Compare commits
3 Commits
f1420b7ef2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 48a97ea739 | |||
| 4448c68175 | |||
| 5895eb1d5c |
@ -5,6 +5,10 @@ Install jq:
|
|||||||
yay -S 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 :
|
Run a command and send its content :
|
||||||
```
|
```
|
||||||
my_command 2>&1 | ./webhook.sh
|
my_command 2>&1 | ./webhook.sh
|
||||||
|
|||||||
@ -7,7 +7,7 @@ begin="Command result:
|
|||||||
|
|
||||||
ending="
|
ending="
|
||||||
\`\`\`
|
\`\`\`
|
||||||
<@635539351324983374>
|
<@YOURUSERIDHERE>
|
||||||
-# Sent from $(hostname) @ $(date)"
|
-# Sent from $(hostname) @ $(date)"
|
||||||
|
|
||||||
#Read from pipe
|
#Read from pipe
|
||||||
|
|||||||
Reference in New Issue
Block a user