name not always defined

This commit is contained in:
MaxRobinsonTheGreat 2024-12-07 23:11:54 -06:00
parent 5497608ee1
commit 5649cec439

View file

@ -387,7 +387,7 @@ export const actionsList = [
},
perform: async function (agent, player_name, message) {
if (convoManager.inConversation())
return 'You are already talking to ' + convoManager.activeConversation.name;
return 'You are already in conversation';
if (!convoManager.isOtherAgent(player_name))
return player_name + ' is not a bot, cannot start conversation.';
convoManager.startConversation(player_name, message);