()
| 5 | import fs from 'fs'; |
| 6 | class 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)) |
nothing calls this directly
no test coverage detected