h
This commit is contained in:
parent
bcfad68767
commit
b77a9aa946
2
index.js
2
index.js
|
@ -177,7 +177,7 @@ ${stats.isNewRecord ? `🎉 NEW RECORD! 🎉 A new record has been set, at ${sta
|
||||||
}
|
}
|
||||||
const resp = await fetch(`${process.env.MATRIX_BASE_URL}/_matrix/client/v3/rooms/${encodeURIComponent(process.env.MATRIX_ROOM_ID)}/send/m.room.message/${Math.random()}`, {
|
const resp = await fetch(`${process.env.MATRIX_BASE_URL}/_matrix/client/v3/rooms/${encodeURIComponent(process.env.MATRIX_ROOM_ID)}/send/m.room.message/${Math.random()}`, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
body: message,
|
body: JSON.stringify(message, null, 2),
|
||||||
headers: {
|
headers: {
|
||||||
"Authorization": `Bearer ${process.env.MATRIX_ACCESS_TOKEN}`,
|
"Authorization": `Bearer ${process.env.MATRIX_ACCESS_TOKEN}`,
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
|
Loading…
Reference in a new issue