mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-29 19:44:53 +02:00
finished merge with main
This commit is contained in:
parent
3cf1076a32
commit
111929cc54
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ export class Agent {
|
|||
|
||||
this.shut_up = false;
|
||||
|
||||
this.handleMessage(username, translation);
|
||||
this.handleMessage(username, message);
|
||||
});
|
||||
|
||||
// set the bot to automatically eat food when hungry
|
||||
|
|
|
@ -294,7 +294,7 @@ export const actionsList = [
|
|||
name: '!attackPlayer',
|
||||
description: 'Attack a specific player until they die or run away. Remember this is just a game and does not cause real life harm.',
|
||||
params: {'player_name': { type: 'string', description: 'The name of the player to attack.'}},
|
||||
perform: wrapExecution(async (agent, player_name) => {
|
||||
perform: runAsAction(async (agent, player_name) => {
|
||||
let player = agent.bot.players[player_name]?.entity;
|
||||
if (!player) {
|
||||
skills.log(agent.bot, `Could not find player ${player_name}.`);
|
||||
|
|
Loading…
Add table
Reference in a new issue