sending more data to the bot

This commit is contained in:
Jack 2020-09-13 20:19:05 +01:00
parent ce40a45547
commit df3c332c2d

View file

@ -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(),
});