mirror of
https://github.com/lklynet/hypermind.git
synced 2026-05-03 09:30:36 +00:00
525 B
525 B
Chat Commands
Chat commands are modular and located in public/js/chat-commands/.
Adding a Command
- Create
chat-commands/mycommand.js:
export const myCommand = {
description: "What it does",
execute: () => {
const output = document.getElementById("terminal-output");
// implementation
},
};
- Import and register in
commands.js:
import { myCommand } from "./chat-commands/mycommand.js";
const actions = {
// ... existing commands
"/mycommand": myCommand,
};