mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-09-02 04:13:03 +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 world from '../library/world.js';
|
||||||
import * as mc from '../../utils/mcdata.js';
|
import * as mc from '../../utils/mcdata.js';
|
||||||
|
import { getCommandDocs } from './index.js';
|
||||||
import convoManager from '../conversation.js';
|
import convoManager from '../conversation.js';
|
||||||
|
|
||||||
const pad = (str) => {
|
const pad = (str) => {
|
||||||
|
@ -181,12 +182,7 @@ export const queryList = [
|
||||||
name: '!help',
|
name: '!help',
|
||||||
description: 'Lists all available commands and their descriptions.',
|
description: 'Lists all available commands and their descriptions.',
|
||||||
perform: async function (agent) {
|
perform: async function (agent) {
|
||||||
const commandList = actionsList.map(action => {
|
return getCommandDocs();
|
||||||
return `${action.name.padEnd(15)} - ${action.description}`; // Ensure consistent spacing
|
|
||||||
}).join('\n');
|
|
||||||
|
|
||||||
console.log(commandList);
|
|
||||||
return `Available Commands:\n${commandList}`;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue