From df3c332c2da92b8f88af2f689c3a2dd9f176b804 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 13 Sep 2020 20:19:05 +0100 Subject: [PATCH] sending more data to the bot --- functions/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/index.js b/functions/index.js index d9f80cb34..265b00814 100644 --- a/functions/index.js +++ b/functions/index.js @@ -839,7 +839,9 @@ exports.testCompleted = functions.runWith({ timeoutSeconds: 540, memory: "2GB" } usr, globallb.insertedAt + 1, lbstring, - obj.wpm + obj.wpm, + obj.rawWpm, + obj.acc ); } @@ -1716,10 +1718,10 @@ exports.scheduledFunctionCrontab = functions.pubsub } }); -async function announceLbUpdate(discordId, pos, lb, wpm) { +async function announceLbUpdate(discordId, pos, lb, wpm, raw, acc) { db.collection("bot-commands").add({ command: "sayLbUpdate", - arguments: [discordId, pos, lb, wpm], + arguments: [discordId, pos, lb, wpm, raw, acc], executed: false, requestTimestamp: Date.now(), });