dotfiles/bin/dhook

9 lines
256 B
Bash
Executable File

#!/bin/bash
text='{"content":"'$(cat /dev/stdin | tr "\n" " ")'"}'
curl -H "Content-Type: application/json" -X POST -d "$text" https://discordapp.com/api/webhooks/636944157625024565/nj11LQ0I716GR8C81WnPYYWW9lwuvJKhnyOX1UIrTaB6ldYn5mjf4qaqmdMQkII2HIRM