mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-31 11:23:08 +02:00
fix help command
This commit is contained in:
parent
a9a55b63e5
commit
85ef0e8103
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue