add some documentation, add timeout and itemuses tracking system

This commit is contained in:
2025-06-29 16:32:15 +02:00
parent 898e0b7b70
commit 4c2f31e1f8
7 changed files with 62 additions and 11 deletions

View File

@@ -20,8 +20,8 @@ export class Command {
};
import { readdir } from 'node:fs/promises';
const commands = new Map<string, Command>;
const basecommands = new Map<string, Command>;
const commands = new Map<string, Command>; // This map has all command/item aliases mapped to commands/items (many-to-one)
const basecommands = new Map<string, Command>; // This map has all command names mapped to commands (one-to-one) (no items)
const files = await readdir(import.meta.dir);
for (const file of files) {