12
run.sh
12
run.sh
@@ -31,15 +31,15 @@ send_matrix() {
|
|||||||
ROOM_ID="!qMftKWAtfFIQzithEu:malgouyres"
|
ROOM_ID="!qMftKWAtfFIQzithEu:malgouyres"
|
||||||
ACCESS_TOKEN="syt_YWRtaW4_HyZwdmZXmngmUNGdxgTV_0tb2UI"
|
ACCESS_TOKEN="syt_YWRtaW4_HyZwdmZXmngmUNGdxgTV_0tb2UI"
|
||||||
|
|
||||||
curl -s -X POST \
|
local payload
|
||||||
|
payload="$(jq -Rn --arg msg "$message" '{msgtype:"m.text", body:$msg}')"
|
||||||
|
|
||||||
|
curl -sS -X POST \
|
||||||
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
|
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-d "$payload" \
|
||||||
\"msgtype\":\"m.text\",
|
|
||||||
\"body\":\"${message}\"
|
|
||||||
}" \
|
|
||||||
"${MATRIX_URL}/_matrix/client/r0/rooms/${ROOM_ID}/send/m.room.message" \
|
"${MATRIX_URL}/_matrix/client/r0/rooms/${ROOM_ID}/send/m.room.message" \
|
||||||
>/dev/null 2>&1 || true
|
>>"$RUN_LOG" 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
send_matrix "🚀 Début de la mise à jour
|
send_matrix "🚀 Début de la mise à jour
|
||||||
|
|||||||
Reference in New Issue
Block a user