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

Method constructor

lib/commandHandler.js:7–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import fs from 'fs';
6class CommandHandler {
7 constructor() {
8 this.commands = new Map();
9 this.aliases = new Map();
10 this.categories = new Map();
11 this.stats = new Map();
12 this.cooldowns = new Map();
13 this.disabledCommands = new Set();
14 this.prefixlessCommands = new Map();
15 this.watchPlugins();
16 }
17 async watchPlugins() {
18 const pluginsPath = path.join(process.cwd(), 'plugins');
19 if (!fs.existsSync(pluginsPath))

Callers

nothing calls this directly

Calls 1

watchPluginsMethod · 0.95

Tested by

no test coverage detected