I
I
Igor2020-09-05 15:49:51
Design patterns
Igor, 2020-09-05 15:49:51

Is there a pattern for executing instructions from a file?

For the second week I have been looking for a solution for reading the script and its subsequent execution.
The bot will read the script and perform actions according to the instructions.

I sketched a diagram, how I imagine it.
5f538a1c4758a411114167.png

Well, something like this.

function process () {
  state = bot[action](arguments)
}


Plz drop an idea.
Where to peek?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-09-05
@IgorPI

state machine?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question