fix help command

This commit is contained in:
MaxRobinsonTheGreat 2025-01-09 12:43:29 -06:00
parent a9a55b63e5
commit 85ef0e8103

View file

@ -1,5 +1,6 @@
import * as world from '../library/world.js';
import * as mc from '../../utils/mcdata.js';
import { getCommandDocs } from './index.js';
import convoManager from '../conversation.js';
const pad = (str) => {
@ -181,12 +182,7 @@ export const queryList = [
name: '!help',
description: 'Lists all available commands and their descriptions.',
perform: async function (agent) {
const commandList = actionsList.map(action => {
return `${action.name.padEnd(15)} - ${action.description}`; // Ensure consistent spacing
}).join('\n');
console.log(commandList);
return `Available Commands:\n${commandList}`;
return getCommandDocs();
}
},
];