diff --git a/bash/miscChat.sh b/bash/miscChat.sh index 74800ed..3a9688f 100755 --- a/bash/miscChat.sh +++ b/bash/miscChat.sh @@ -1,8 +1,7 @@ #!/bin/bash -#msg="\"{\\\"content\\\":\\\"$@\\\"}\"" -msg="{\"content\":\"$@\"}" -echo $msg +msgString=$@ -curl -H "Content-Type: application/json" -d "$msg" \ - #WEBHOOK URL \ No newline at end of file +curl -XPOST \ + -d "$(jq -cn --arg msgtype 'm.text' --arg body "$msgString" '{msg: $ARGS.named}' | jq -s add | jq .msg)" \ + #WEBHOOK URL