MCPcopy Create free account
hub / github.com/Botloader/botloader / runOnce

Function runOnce

integration-tests/lib.ts:57–64  ·  view source on GitHub ↗
(name: string, cb: () => any)

Source from the content-addressed store, hash-verified

55}
56
57export async function runOnce(name: string, cb: () => any) {
58 if (await run_tracker.setIf("run_" + name, true, "IfNotExists")) {
59 console.log(`Running ${name}`)
60 await cb();
61 } else {
62 console.log("skipping already run test");
63 }
64}
65
66runOnce(script.name, async () => {
67 await sendScriptCompletion(script.name);

Callers 15

http.tsFile · 0.90
attachment.tsFile · 0.90
roles.tsFile · 0.90
threads.tsFile · 0.90
commands.tsFile · 0.90
tasks_del.tsFile · 0.90
permissions2.tsFile · 0.90
messagecreate.tsFile · 0.90
emoji.tsFile · 0.90
pins.tsFile · 0.90
get_members.tsFile · 0.90
components.tsFile · 0.90

Calls 1

logMethod · 0.80

Tested by

no test coverage detected