diff options
Diffstat (limited to 'scripts/stresstest/src/message/send.js')
-rw-r--r-- | scripts/stresstest/src/message/send.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/scripts/stresstest/src/message/send.js b/scripts/stresstest/src/message/send.js index d21560d7..1e5ea062 100644 --- a/scripts/stresstest/src/message/send.js +++ b/scripts/stresstest/src/message/send.js @@ -6,16 +6,19 @@ async function sendMessage(account) { var body = { fingerprint: "805826570869932034.wR8vi8lGlFBJerErO9LG5NViJFw", content: "Test", - tts: false + tts: false, }; - var x = await fetch(config.url + "/channels/" + config["text-channel"] + "/messages", { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: account.token + var x = await fetch( + config.url + "/channels/" + config["text-channel"] + "/messages", + { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: account.token, + }, + body: JSON.stringify(body), }, - body: JSON.stringify(body) - }); + ); console.log(x); x = await x.json(); console.log(x); |