MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / execute

Function execute

src/events/ready.js:10–25  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

8 once: true,
9
10 async execute(client) {
11 try {
12 client.user.setPresence(config.bot.presence);
13
14 startupLog(`Ready! Logged in as ${client.user.tag}`);
15 startupLog(`Serving ${client.guilds.cache.size} guild(s)`);
16 startupLog(`Loaded ${client.commands.size} commands`);
17
18 const reconciliationSummary = await reconcileReactionRoleMessages(client);
19 startupLog(
20 `Reaction role reconciliation: scanned ${reconciliationSummary.scannedMessages}, removed ${reconciliationSummary.removedMessages}, errors ${reconciliationSummary.errors}`
21 );
22 } catch (error) {
23 logger.error("Error in ready event:", error);
24 }
25 },
26};

Callers

nothing calls this directly

Calls 2

startupLogFunction · 0.90

Tested by

no test coverage detected