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

Function execute

src/events/messageCreate.js:26–43  ·  view source on GitHub ↗
(message, client)

Source from the content-addressed store, hash-verified

24export default {
25 name: Events.MessageCreate,
26 async execute(message, client) {
27 try {
28 if (message.author.bot || !message.guild) return;
29
30 logger.debug(`Message received from ${message.author.tag}: ${message.content}`);
31
32 const countingProcessed = await handleCountingGame(message, client);
33 if (countingProcessed) {
34 return;
35 }
36
37 await handlePrefixCommand(message, client);
38
39 await handleLeveling(message, client);
40 } catch (error) {
41 logger.error('Error in messageCreate event:', error);
42 }
43 }
44};
45
46async function handlePrefixCommand(message, client) {

Callers

nothing calls this directly

Calls 3

handleCountingGameFunction · 0.85
handlePrefixCommandFunction · 0.85
handleLevelingFunction · 0.85

Tested by

no test coverage detected