Skip to content

Sample code for javascript bot doesn't run #446

@sebastianandreasson

Description

@sebastianandreasson

Just found this awesome project and tried out the starting javascript bot, however it didn't run for me. Looks to be usage of spread operator here

Changing it from

this._params = {
  health: constants.BASE_SHIP_HEALTH,
  dockingStatus: dockingStatus.UNDOCKED,
  ...params
}

to

this._params = Object.assign({
  health: constants.BASE_SHIP_HEALTH,
  dockingStatus: dockingStatus.UNDOCKED,
}, params)

and it runs fine!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions