summary refs log tree commit diff
path: root/scripts/stresstest/src/message/send.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:29:30 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:41:21 +1000
commit99ee7e9400f06e8718612d8b52d15215dc620774 (patch)
tree08de8c5d3985b9c2eaa419f5198f891ecd82d012 /scripts/stresstest/src/message/send.js
parentRemove the cdn storage location log (diff)
downloadserver-99ee7e9400f06e8718612d8b52d15215dc620774.tar.xz
Prettier
Diffstat (limited to 'scripts/stresstest/src/message/send.js')
-rw-r--r--scripts/stresstest/src/message/send.js19
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);