V
V
vladmany2021-03-14 01:28:58
Node.js
vladmany, 2021-03-14 01:28:58

How to run a script on the server and interact with it from the console?

There is a libraryfor NodeJS, which allows you to run bots on Minecraft game servers and control their behavior using JavaScript. In short, a bot instance is created that contains all the necessary information about the environment, events, bot control methods. My task is to manage multiple instances of bots from the console. Let's say somewhere on the server there will be a process that supports the work of bots, and I need to manage this process from the terminal, create new bots, and stop the work of existing ones. Interaction should be carried out using console commands. I got acquainted with NodeJS quite recently, and there is not enough experience and knowledge to understand how to properly implement this task. From what I was able to find on the internet, the only solution I see is the procedure, which ensures the operation of bots on the server, and commands from the console to send requests to it. But I think there is an option much easier and more correct. I ask for your help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question