diff --git a/functions/index.js b/functions/index.js index 7bc235772..fd2f2379b 100644 --- a/functions/index.js +++ b/functions/index.js @@ -1080,3 +1080,12 @@ exports.scheduledFunctionCrontab = functions.pubsub console.error(`error while moving daily leaderboards to history - ${e}`); } }); + +async function announceLbUpdate(discordId, pos, lb, wpm) { + db.collection("bot-commands").add({ + command: "updateRole", + arguments: [discordId, pos, lb, wpm], + executed: false, + requestTimestamp: Date.now(), + }); +}