Skip to content
This site is under heavy WIP, so contributions on GitHub are much appreciated! You've most likely been pointed to this site to point towards a concept, or something. Either way, take at least some of the info on this page with a grain of salt, and also don't expect much info since it's very incomplete on content.

Register actions

For Neuro to be able to interact with the game, you need to register actions to Neuro.

When registering actions to Neuro, send this packet:

{
"command": "actions/register",
"game": string,
"data": {
"actions": [
{
"name": string,
"description": string,
"schema": {
[key: string]: any
}
} // Add more as necessary
]
}
}
  • actions - An array of actions that Neuro can use after receiving the packet. See the section below.
  • name - The action name. This should be unique between every action you have in your game. It should be all lowercase with words separated by underscores (_).
  • description - A plaintext description of the action for Neuro to understand how to use it.
  • schema - A valid JSON schema for Neuro to fill out when she executes the action. If a schema is not needed, you can omit this field or set it to {}.