mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-26 17:03:45 +02:00
Merge pull request #334 from hackdefendr/main
Adding !help from the TODO project
This commit is contained in:
commit
65a6d0f32d
1 changed files with 12 additions and 0 deletions
|
@ -420,4 +420,16 @@ export const actionsList = [
|
|||
// return 'Set npc goal: ' + agent.npc.data.curr_goal.name;
|
||||
// }
|
||||
// },
|
||||
{
|
||||
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}`;
|
||||
}
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue