dotfiles/bin/dhook

9 lines
256 B
Plaintext
Raw Normal View History

2019-11-06 20:35:44 +00:00
#!/bin/bash
2019-11-08 04:08:03 +00:00
text='{"content":"'$(cat /dev/stdin | tr "\n" " ")'"}'
2019-11-06 20:35:44 +00:00
curl -H "Content-Type: application/json" -X POST -d "$text" https://discordapp.com/api/webhooks/636944157625024565/nj11LQ0I716GR8C81WnPYYWW9lwuvJKhnyOX1UIrTaB6ldYn5mjf4qaqmdMQkII2HIRM