finished merge with main

This commit is contained in:
Kolby Nottingham 2024-11-05 15:48:37 -08:00
parent 3cf1076a32
commit 111929cc54
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ export class Agent {
this.shut_up = false; this.shut_up = false;
this.handleMessage(username, translation); this.handleMessage(username, message);
}); });
// set the bot to automatically eat food when hungry // set the bot to automatically eat food when hungry

View file

@ -294,7 +294,7 @@ export const actionsList = [
name: '!attackPlayer', 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.', 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.'}}, 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; let player = agent.bot.players[player_name]?.entity;
if (!player) { if (!player) {
skills.log(agent.bot, `Could not find player ${player_name}.`); skills.log(agent.bot, `Could not find player ${player_name}.`);