MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / handler

Function handler

plugins/welcome.js:11–15  ·  view source on GitHub ↗
(sock, message, args, context)

Source from the content-addressed store, hash-verified

9 groupOnly: true,
10 adminOnly: true,
11 async handler(sock, message, args, context) {
12 const { chatId } = context;
13 const matchText = args.join(' ');
14 await handleWelcome(sock, chatId, message, matchText);
15 }
16};
17async function handleJoinEvent(sock, id, participants) {
18 const isWelcomeEnabled = await isWelcomeOn(id);

Callers

nothing calls this directly

Calls 1

handleWelcomeFunction · 0.90

Tested by

no test coverage detected