mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-26 09:59:21 +08:00
sending more data to the bot
This commit is contained in:
parent
ce40a45547
commit
df3c332c2d
1 changed files with 5 additions and 3 deletions
|
|
@ -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(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue